mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Update $fish_bind_mode only if necessary
This commit is contained in:
parent
44c6fa68cf
commit
fd8ab78372
1 changed files with 2 additions and 1 deletions
|
@ -278,7 +278,8 @@ const wchar_t *input_get_bind_mode()
|
|||
*/
|
||||
bool input_set_bind_mode(const wchar_t *bm)
|
||||
{
|
||||
env_set(FISH_BIND_MODE_VAR, bm, ENV_GLOBAL);
|
||||
if(wcscmp(bm, input_get_bind_mode()))
|
||||
env_set(FISH_BIND_MODE_VAR, bm, ENV_GLOBAL);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue