aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c6
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)