Update $fish_bind_mode only if necessary

This commit is contained in:
Julian Aron Prenner 2014-01-20 14:03:48 +01:00
parent 44c6fa68cf
commit fd8ab78372

View file

@ -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;
}