diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2018-05-04 16:34:46 +0200 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2018-05-04 20:59:51 +0200 |
commit | 16ce2e006bb4c83e9054cdbfe780ff25fc757fc2 (patch) | |
tree | 01842e5c8d13c7717b6ce8b78c5963da1d50de5c /test/functional/lua/luaeval_spec.lua | |
parent | e46534b4230242c0d41831cc7ad16863c976b151 (diff) | |
download | rneovim-16ce2e006bb4c83e9054cdbfe780ff25fc757fc2.tar.gz rneovim-16ce2e006bb4c83e9054cdbfe780ff25fc757fc2.tar.bz2 rneovim-16ce2e006bb4c83e9054cdbfe780ff25fc757fc2.zip |
screen: avoid artifacts
Put back the condition that was accidentally removed in
https://github.com/neovim/neovim/commit/d42f934bcb3e9e876e5e7ba0ab5cd824175fd10c
- if (enc_utf8 && ScreenLinesUC[off] != 0)
- bytes[utfc_char2bytes(off, bytes)] = NUL;
- else if (enc_dbcs == DBCS_JPNU && ScreenLines[off] == 0x8e) {
- bytes[0] = ScreenLines[off];
- bytes[1] = ScreenLines2[off];
- bytes[2] = NUL;
- } else if (enc_dbcs && MB_BYTE2LEN(bytes[0]) > 1) {
- bytes[1] = ScreenLines[off + 1];
- bytes[2] = NUL;
- }
+ bytes[utfc_char2bytes(off, bytes)] = NUL;
Fixes #8357
Diffstat (limited to 'test/functional/lua/luaeval_spec.lua')
0 files changed, 0 insertions, 0 deletions