Commit de3260cd authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

justify: reduce the character count when trimming trailing spaces

This fixes https://savannah.gnu.org/bugs/?50379.
No related merge requests found
Showing with 2 additions and 1 deletion
+2 -1
......@@ -2445,10 +2445,11 @@ void do_justify(bool full_justify)
#endif
/* Break the current line. */
if (ISSET(JUSTIFY_TRIM)) {
if (ISSET(JUSTIFY_TRIM)) {
while (break_pos > 0 &&
is_blank_mbchar(&openfile->current->data[break_pos - 1])) {
break_pos--;
openfile->totsize--;
}
}
null_at(&openfile->current->data, break_pos);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment