diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-02-01 10:43:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 10:43:14 +0800 |
commit | 547497b042dccc10de0e144485d36952dbd1182e (patch) | |
tree | 51e74fbd45dda0dc49ceb0b47b063d111c80cf4b /src/nvim/charset.c | |
parent | 5205bcc9049a171e90ebd01bbc0367f4ae2371d1 (diff) | |
parent | bba5003bdb628764362d8c4869a1e1999584d716 (diff) | |
download | rneovim-547497b042dccc10de0e144485d36952dbd1182e.tar.gz rneovim-547497b042dccc10de0e144485d36952dbd1182e.tar.bz2 rneovim-547497b042dccc10de0e144485d36952dbd1182e.zip |
Merge pull request #17261 from zeertzjq/vim-8.2.4273
vim-patch:8.2.4273: the EBCDIC support is outdated
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r-- | src/nvim/charset.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index 599d662993..583a040ed1 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -217,9 +217,7 @@ int buf_init_chartab(buf_T *buf, int global) } } else if (i == 1) { // (re)set printable - // For double-byte we keep the cell width, so - // that we can detect it from the first byte. - if (((c < ' ') || (c > '~'))) { + if (c < ' ' || c > '~') { if (tilde) { g_chartab[c] = (uint8_t)((g_chartab[c] & ~CT_CELL_MASK) + ((dy_flags & DY_UHEX) ? 4 : 2)); @@ -539,7 +537,7 @@ char_u *transchar_buf(const buf_T *buf, int c) c = K_SECOND(c); } - if ((!chartab_initialized && (((c >= ' ') && (c <= '~')))) + if ((!chartab_initialized && (c >= ' ' && c <= '~')) || ((c <= 0xFF) && vim_isprintc_strict(c))) { // printable character transchar_charbuf[i] = (char_u)c; |