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:
parent
80bf36e074
commit
fa8923e1f9
1 changed files with 3 additions and 1 deletions
|
@ -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':
|
||||||
|
|
Loading…
Reference in a new issue