nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit eec40df2a17070c01002be47d677c0df22eed7ec
parent c346701d093daaa6938a8b52eba49260b853137f
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Thu, 13 Jul 2006 12:18:57 +0000

in do_insertfile(), remove redundant code: we only mark the file as
modified if we're not in multibuffer mode, in which case view mode
should never be on


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3787 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 2--
Msrc/files.c | 6++----
2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -78,8 +78,6 @@ CVS code - path. (DLR) - files.c: do_insertfile() - - If we're in view mode, as we can be if multibuffer mode is on, - don't mark the file as modified. (DLR) - If we execute a command in a new buffer, move back to the beginning of the first line of the buffer afterwards, for consistency. (DLR) diff --git a/src/files.c b/src/files.c @@ -878,10 +878,8 @@ void do_insertfile( /* Restore the old place we want. */ openfile->placewewant = pww_save; - /* Mark the file as modified, unless we're here in view - * mode, which we can be if multibuffer mode is on. */ - if (!ISSET(VIEW_MODE)) - set_modified(); + /* Mark the file as modified. */ + set_modified(); /* Update the screen. */ edit_refresh();