mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
Eliminate a static string from input_terminfo_get_sequence
This commit is contained in:
@@ -471,10 +471,10 @@ static int builtin_bind_add(const wchar_t *seq, const wchar_t *cmd, int terminfo
|
||||
|
||||
if (terminfo)
|
||||
{
|
||||
const wchar_t *seq2 = input_terminfo_get_sequence(seq);
|
||||
if (seq2)
|
||||
wcstring seq2;
|
||||
if (input_terminfo_get_sequence(seq, &seq2))
|
||||
{
|
||||
input_mapping_add(seq2, cmd);
|
||||
input_mapping_add(seq2.c_str(), cmd);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user