diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-07-09 20:51:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-07-09 20:51:07 +0200 |
commit | 455009122a23050ef31c428df4155ad418b2e6fc (patch) | |
tree | 0679dd1fc50f4bb8e4b9a2dd7341e3f3e17d236d /src/term.c | |
parent | 1e1aca37841103a90ba773f14899ba3a3757cee2 (diff) | |
download | vim-git-455009122a23050ef31c428df4155ad418b2e6fc.tar.gz |
updated for version 7.4.363v7.4.363
Problem: In Windows console typing 0xCE does not work.
Solution: Convert 0xCE to K_NUL 3. (Nobuhiro Takasaki et al.)
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index 949b6fa4b..95c29ccf4 100644 --- a/src/term.c +++ b/src/term.c @@ -3724,7 +3724,11 @@ add_termcode(name, string, flags) return; } +#if defined(WIN3264) && !defined(FEAT_GUI) + s = vim_strnsave(string, (int)STRLEN(string) + 1); +#else s = vim_strsave(string); +#endif if (s == NULL) return; @@ -3734,6 +3738,15 @@ add_termcode(name, string, flags) STRMOVE(s, s + 1); s[0] = term_7to8bit(string); } + +#if defined(WIN3264) && !defined(FEAT_GUI) + if (s[0] == K_NUL) + { + STRMOVE(s + 1, s); + s[1] = 3; + } +#endif + len = (int)STRLEN(s); need_gather = TRUE; /* need to fill termleader[] */ |