1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-14 14:01:18 +02: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

View file

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