mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-20 14:11:14 -03:00
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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user