diff options
author | James McCoy <jamessan@jamessan.com> | 2018-05-04 19:42:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-04 19:42:58 -0400 |
commit | 500931752565e0b535f4ce6013729df3febf1a56 (patch) | |
tree | aeedacc6b0871876239f5c052f8daa8a233aaf97 /src | |
parent | 0a349fd77de5cbf7516f6bc4f0117213b4f52b8b (diff) | |
parent | ec1a7791b00f98460c60e7ae4eec383dce741de8 (diff) | |
download | rneovim-500931752565e0b535f4ce6013729df3febf1a56.tar.gz rneovim-500931752565e0b535f4ce6013729df3febf1a56.tar.bz2 rneovim-500931752565e0b535f4ce6013729df3febf1a56.zip |
Merge pull request #8358 from mhinz/screen
[RFC] screen: avoid artifacts
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/screen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index b615f69cd3..f034ac33f1 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -5310,7 +5310,9 @@ void screen_getbytes(int row, int col, char_u *bytes, int *attrp) bytes[0] = ScreenLines[off]; bytes[1] = NUL; - bytes[utfc_char2bytes(off, bytes)] = NUL; + if (ScreenLinesUC[off] != 0) { + bytes[utfc_char2bytes(off, bytes)] = NUL; + } } } |