in save_history(), properly save history when in view mode
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2530 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
@@ -2912,8 +2912,8 @@ void save_history(void)
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user