diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp index 69b3077f27..785f412e18 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;