1
0
forked from aniani/vim

updated for version 7.4.363

Problem:    In Windows console typing 0xCE does not work.
Solution:   Convert 0xCE to K_NUL 3. (Nobuhiro Takasaki et al.)
This commit is contained in:
Bram Moolenaar
2014-07-09 20:51:07 +02:00
parent 1e1aca3784
commit 455009122a
3 changed files with 39 additions and 4 deletions

View File

@@ -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[] */