diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2017-05-20 17:07:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-20 17:07:35 +0200 |
| commit | bde46fdeceec8f9dd675f0e31080d732308573d9 (patch) | |
| tree | 0044b6fd7f2f1682941e053ea686ec98a1d4f898 /src/nvim/charset.c | |
| parent | 3280765f2dde4ba6d120387908d735ed763db01c (diff) | |
| parent | 7dc7d2f83f30eb2df1c5408ffceda244ced2f468 (diff) | |
| download | rneovim-bde46fdeceec8f9dd675f0e31080d732308573d9.tar.gz rneovim-bde46fdeceec8f9dd675f0e31080d732308573d9.tar.bz2 rneovim-bde46fdeceec8f9dd675f0e31080d732308573d9.zip | |
Merge #6772 from ZyX-I/fix-pvs-errors
Diffstat (limited to 'src/nvim/charset.c')
| -rw-r--r-- | src/nvim/charset.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index ee58e0af91..5a0590d075 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -545,18 +545,8 @@ void transchar_nonprint(char_u *buf, int c) buf[1] = (char_u)(c ^ 0x40); buf[2] = NUL; - } else if (c >= 0x80) { - transchar_hex(buf, c); - } else if ((c >= ' ' + 0x80) && (c <= '~' + 0x80)) { - // 0xa0 - 0xfe - buf[0] = '|'; - buf[1] = (char_u)(c - 0x80); - buf[2] = NUL; } else { - // 0x80 - 0x9f and 0xff - buf[0] = '~'; - buf[1] = (char_u)((c - 0x80) ^ 0x40); - buf[2] = NUL; + transchar_hex(buf, c); } } |