summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gfx_layout.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp
index 69b3077f2..785f412e1 100644
--- a/src/gfx_layout.cpp
+++ b/src/gfx_layout.cpp
@@ -324,6 +324,9 @@ ParagraphLayout::Line *ParagraphLayout::nextLine(int max_width)
next_run = this->buffer_begin + iter->first + 1;
begin = this->buffer;
+
+ last_char = begin;
+ last_space = NULL;
}
if (IsWhitespace(c)) last_space = this->buffer;