From 2d705caec71236799396e59ac6a26de1e09664c4 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sat, 9 Jul 2005 05:38:21 +0000
Subject: [PATCH] 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
---
 src/files.c | 4 ++--
 src/nano.c  | 6 ++----
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/files.c b/src/files.c
index 103be064..d8cb28eb 100644
--- 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
index 32708beb..fe823056 100644
--- 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;
-- 
GitLab