nano

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

commit 2d705caec71236799396e59ac6a26de1e09664c4
parent 1d696c0047ec2d0b1a4fde6861f9c35e413df3e3
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sat,  9 Jul 2005 05:38:21 +0000

fix still more breakage caused by the overhaul


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

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

diff --git a/src/files.c b/src/files.c @@ -169,8 +169,8 @@ void open_buffer(const char *filename) /* If the filename isn't blank, open the file. Otherwise, treat it * as a new file. */ - rc = (filename[0] != '\0') ? open_file(filename, new_buffer, &f) : - -2; + rc = (filename[0] != '\0') ? + open_file(filename, new_buffer, &f) : -2; /* If we're loading into a new buffer, add a new openfile entry. */ if (new_buffer) diff --git a/src/nano.c b/src/nano.c @@ -4699,9 +4699,6 @@ int main(int argc, char **argv) UNSET(VIEW_MODE); } - /* Update the screen to account for the current buffer. */ - load_buffer(); - #ifdef ENABLE_MULTIBUFFER if (!old_multibuffer) UNSET(MULTIBUFFER); @@ -4721,7 +4718,8 @@ int main(int argc, char **argv) sigsetjmp(jmpbuf, 1); #endif - edit_refresh(); + /* Update the screen to account for the current buffer. */ + load_buffer(); while (TRUE) { bool meta_key, func_key, s_or_t, ran_func, finished;