commit | 3798519b9eb1f3c8c614c2d21743660a2a2cf947 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Jun 07 19:53:10 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Jun 07 19:53:10 2013 +0200 |
tree | c825948e74ad35d1b62a50478f1c1eca6653fa26 | |
parent | 45fc539fe048e037a8fc8dc8c043a781c30c9c73 [diff] [blame] |
updated for version 7.3.1143 Problem: When mapping NUL it is displayed as an X. Solution: Check for KS_ZERO instead of K_ZERO. (Yasuhiro Matsumoto)
diff --git a/src/message.c b/src/message.c index b574df6..8330ef7 100644 --- a/src/message.c +++ b/src/message.c
@@ -1577,7 +1577,7 @@ { c = TO_SPECIAL(str[1], str[2]); str += 2; - if (c == K_ZERO) /* display <Nul> as ^@ */ + if (c == KS_ZERO) /* display <Nul> as ^@ or <Nul> */ c = NUL; } if (IS_SPECIAL(c) || modifiers) /* special key */