fix how fish behaves when FISH_HISTORY is set

Without this change setting `FISH_HISTORY` causes interactive input to
no longer provide autosuggestions, completions, etc.

Fixes #4234
This commit is contained in:
Kurtis Rader
2017-07-27 21:32:49 -07:00
parent 7a18c37b39
commit 96fca8b4ec
3 changed files with 9 additions and 2 deletions

View File

@@ -613,8 +613,7 @@ static void react_to_variable_change(const wcstring &key) {
} else if (key == L"FISH_READ_BYTE_LIMIT") {
env_set_read_limit();
} else if (key == L"FISH_HISTORY") {
history_destroy();
reader_push(history_session_id().c_str());
reader_change_history(history_session_id().c_str());
}
}