From 0fb841a78a003855f746c531ca153091a4a51084 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 1 Jul 2004 17:04:23 +0000 Subject: [PATCH] per DB's patch, tweak the code to update the edit window just before getting statusbar input for efficiency, and update bottomwin just before then too git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1833 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++++ src/winio.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6e4aeb49..0fb0bd88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,10 @@ CVS code - get_control_kbinput() - Fix erroneous debugging statement so that nano compiles with --enable-debug again. (Jon Oberheide) + nanogetstr() + - Tweak the code to update the edit window just before getting + statusbar input for efficiency, and update bottomwin just + before then too. (David Benbennick) GNU nano 1.3.3 - 2004.06.28 - General: diff --git a/src/winio.c b/src/winio.c index 54d13d7f..c46627e1 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1589,7 +1589,8 @@ int nanogetstr(int allowtabs, const char *buf, const char *def, /* Make sure any editor screen updates are displayed before getting input */ - wrefresh(edit); + wnoutrefresh(edit); + wrefresh(bottomwin); /* If we're using restricted mode, we aren't allowed to change the * name of a file once it has one because that would allow writing