summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sign.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sign.cpp b/src/sign.cpp index 7c4f43f..b9299d6 100644 --- a/src/sign.cpp +++ b/src/sign.cpp
@@ -28,11 +28,16 @@ void Sign::displayMessage(std::string text) {
28 cur = words.front(); 28 cur = words.front();
29 } else if (words.size() == 1) { 29 } else if (words.size() == 1) {
30 lines.push_back({.text = cur, .pause = true}); 30 lines.push_back({.text = cur, .pause = true});
31 cur = "";
31 } 32 }
32 33
33 prev = cur; 34 prev = cur;
34 words.pop_front(); 35 words.pop_front();
35 } 36 }
37
38 if (!cur.empty()) {
39 lines.push_back({.text = cur, .pause = true});
40 }
36 } 41 }
37 42
38 lines.back().pause = true; 43 lines.back().pause = true;