Fix minor bug of user key-script mapping function

This commit is contained in:
yabu76 2026-02-11 08:40:12 +09:00
parent 60bc7e9cfe
commit 2496676199

View file

@ -1368,6 +1368,11 @@ int keymap_set(char *key_str, int key_len, char *func_str, int func_len)
break;
}
}
if (dst_ofs < 0)
{
func_str_r[0] = '\0';
}
if (strcmp(func_str_r, "nil") == 0 || func_str_r[0] == '\0')
{
unset_requested = true;