This commit is contained in:
Kovid Goyal
2017-08-28 11:09:54 +05:30
parent 37f0cf86d0
commit 4fd8c7cfaa
6 changed files with 17 additions and 16 deletions

View File

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