justify: reduce the character count when trimming trailing spaces
This fixes https://savannah.gnu.org/bugs/?50379.master
parent
23c3fd9bcd
commit
de3260cdb1
|
@ -2449,6 +2449,7 @@ void do_justify(bool full_justify)
|
||||||
while (break_pos > 0 &&
|
while (break_pos > 0 &&
|
||||||
is_blank_mbchar(&openfile->current->data[break_pos - 1])) {
|
is_blank_mbchar(&openfile->current->data[break_pos - 1])) {
|
||||||
break_pos--;
|
break_pos--;
|
||||||
|
openfile->totsize--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
null_at(&openfile->current->data, break_pos);
|
null_at(&openfile->current->data, break_pos);
|
||||||
|
|
Loading…
Reference in New Issue