# HG changeset patch # User Rubidium # Date 2024-01-11 20:39:47 # Node ID d649d9d0b48295e528bc4df155dbc3ef7c3f3339 # Parent 5d34708e11c4714123b2030006f640446bbfa920 Fix #11485: new run on same line must not use last_space of previous run as cut-off point Use the start of the next run instead as the location of the last space. diff --git a/src/gfx_layout_fallback.cpp b/src/gfx_layout_fallback.cpp --- a/src/gfx_layout_fallback.cpp +++ b/src/gfx_layout_fallback.cpp @@ -256,6 +256,11 @@ std::unique_ptrbuffer_begin + iter->first; begin = this->buffer; + /* Since a next run is started, there is already some text that + * will be shown for this line. However, we do not want to break + * this line at the previous space, so pretend we passed a space + * just before this next run. */ + last_space = begin - 1; } if (IsWhitespace(c)) last_space = this->buffer;