diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-08-24 21:30:28 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-08-24 21:30:28 +0200 |
commit | 98fc8d7b6c8cc3c2f55e8d08617ecc27a3624899 (patch) | |
tree | d2ea8b0c8e73aa510a529939961f378a620a3281 /src/terminal.c | |
parent | 7c60505e1012a43549c2c075c27463c5399e81ec (diff) | |
download | vim-git-98fc8d7b6c8cc3c2f55e8d08617ecc27a3624899.tar.gz |
patch 8.1.0326: screen dump does not consider NUL and space equalv8.1.0326
Problem: Screen dump does not consider NUL and space equal.
Solution: Use temp variables instead of character from cell.
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal.c b/src/terminal.c index 66a73690f..8524560a4 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -3939,9 +3939,9 @@ f_term_dumpwrite(typval_T *argvars, typval_T *rettv UNUSED) c = (c == NUL) ? ' ' : c; pc = (pc == NUL) ? ' ' : pc; } - if (cell.chars[i] != prev_cell.chars[i]) + if (c != pc) same_chars = FALSE; - if (cell.chars[i] == NUL || prev_cell.chars[i] == NUL) + if (c == NUL || pc == NUL) break; } same_attr = vtermAttr2hl(cell.attrs) |