mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix minor bug of user key-script mapping function
This commit is contained in:
parent
60bc7e9cfe
commit
2496676199
1 changed files with 5 additions and 0 deletions
|
|
@ -1368,6 +1368,11 @@ int keymap_set(char *key_str, int key_len, char *func_str, int func_len)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (dst_ofs < 0)
|
||||||
|
{
|
||||||
|
func_str_r[0] = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
if (strcmp(func_str_r, "nil") == 0 || func_str_r[0] == '\0')
|
if (strcmp(func_str_r, "nil") == 0 || func_str_r[0] == '\0')
|
||||||
{
|
{
|
||||||
unset_requested = true;
|
unset_requested = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue