do_browser()
- Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for
consistency. (DLR)
+ save_history()
+ - Properly save history when in view mode. (DLR)
- global.c:
shortcut_init()
- Move the "Refresh" and "Exit" shortcuts to the beginning of
char *nanohist;
/* Don't save unchanged or empty histories. */
- if ((search_history.count == 0 && replace_history.count == 0) ||
- !ISSET(HISTORY_CHANGED) || ISSET(VIEW_MODE))
+ if (!ISSET(HISTORY_CHANGED) || (search_history.count == 0 &&
+ replace_history.count == 0))
return;
nanohist = histfilename();