Commit 2d705cae authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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
No related merge requests found
Showing with 4 additions and 6 deletions
+4 -6
......@@ -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)
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment