Because of the guards in the switch functions and with
HISTORY_START_WITH_GLOBAL being false by default, the per directory
history was not active after initialisation.
During initialisation, _per_directory_history_is_global was false and
_per-directory-history-set-directory-history was called but wouldn't do
anything. Only toggling twice would enable per directory history.
This commit removes the guards and restructures the code slightly to
make HISTORY_START_WITH_GLOBAL being false and true work from the
beginning.
Because of the guards in the switch functions and with HISTORY_START_WITH_GLOBAL being false by default, the per directory history was not active after initialisation.
During initialisation, _per_directory_history_is_global was false and _per-directory-history-set-directory-history was called but wouldn't do anything. Only toggling twice would enable per directory history.
This commit removes the guards and restructures the code slightly to make HISTORY_START_WITH_GLOBAL being false and true work from the beginning.