diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-03-02 02:33:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-02 02:33:36 +0100 |
commit | ed4132d7e9a7a3bda21c35119ce221146493e986 (patch) | |
tree | 898591a424f3ea3fd91e0adac6d19c881c258e64 /src/nvim/edit.c | |
parent | 708176aea18e236b7ebc96a3f51dae22b366cc12 (diff) | |
download | rneovim-ed4132d7e9a7a3bda21c35119ce221146493e986.tar.gz rneovim-ed4132d7e9a7a3bda21c35119ce221146493e986.tar.bz2 rneovim-ed4132d7e9a7a3bda21c35119ce221146493e986.zip |
cleanup: remove legacy `enc_dbcs` global #9660
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 5a21c50fa6..67ac675a14 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -5110,11 +5110,9 @@ int get_literal(void) } } - if (cc == 0) /* NUL is stored as NL */ + if (cc == 0) { // NUL is stored as NL cc = '\n'; - if (enc_dbcs && (cc & 0xff) == 0) - cc = '?'; /* don't accept an illegal DBCS char, the NUL in the - second byte will cause trouble! */ + } --no_mapping; if (nc) |