1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

If getkeystring() finds a \c escape (when looking for such escapes),

truncate the returned string at the escape.
This commit is contained in:
Wayne Davison 2005-07-26 00:07:08 +00:00
parent 80bf36e074
commit fa8923e1f9

@ -3611,7 +3611,9 @@ getkeystring(char *s, int *len, int fromwhere, int *misc)
case 'c':
if (fromwhere < 2) {
*misc = 1;
break;
*t = '\0';
*len = t - buf;
return buf;
}
goto def;
case 'u':