mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Fix bind -e
without -k
In adding `-k` support to `bind -e` I broke the ability to use `bind -e` without specifyign `-k`. Oops.
This commit is contained in:
parent
4718636ae2
commit
5eee7d17f6
1 changed files with 11 additions and 4 deletions
|
@ -582,6 +582,8 @@ static int builtin_bind_erase(wchar_t **seq, int all, const wchar_t *mode, int u
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
||||||
while (*seq)
|
while (*seq)
|
||||||
|
{
|
||||||
|
if (use_terminfo)
|
||||||
{
|
{
|
||||||
wcstring seq2;
|
wcstring seq2;
|
||||||
if (get_terminfo_sequence(*seq++, &seq2))
|
if (get_terminfo_sequence(*seq++, &seq2))
|
||||||
|
@ -593,6 +595,11 @@ static int builtin_bind_erase(wchar_t **seq, int all, const wchar_t *mode, int u
|
||||||
res = 1;
|
res = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
input_mapping_erase(*seq++, mode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue