This commit is contained in:
Kovid Goyal 2016-11-09 19:11:32 +05:30
parent 7108584e7a
commit c6780ca463

View File

@ -414,7 +414,7 @@ static bool rewrap_inner(LineBuf *src, LineBuf *dest, const index_type src_limit
src_x_limit = src->xnum; src_x_limit = src->xnum;
if (!src_line_is_continued) { if (!src_line_is_continued) {
// Trim trailing white-space since there is a hard line break at the end of this line // Trim trailing white-space since there is a hard line break at the end of this line
while(src_x_limit && (src->line->chars[src->line->xnum - 1] & CHAR_MASK) == 32) src_x_limit--; while(src_x_limit && (src->line->chars[src_x_limit - 1] & CHAR_MASK) == 32) src_x_limit--;
} }
while (src_x < src_x_limit) { while (src_x < src_x_limit) {