commit 022b96f9414a98bb345128744f6a7c551494b288
parent 442f2c5156ae81dca1c6a8b15e5381db39197943
Author: Chris Allegretta <chrisa@asty.org>
Date: Tue, 14 Nov 2000 17:47:58 +0000
Rocco's latest spellcheck fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@282 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/search.c b/search.c
@@ -461,10 +461,8 @@ int do_replace_loop(char *prevanswer, filestruct *begin, int *beginx,
fileptr = findnextstr(replaceall, begin, *beginx, prevanswer);
/* No more matches. Done! */
- if (!fileptr) {
- wrefresh(edit);
+ if (!fileptr)
break;
- }
/* Make sure only wholewords are found */
if (wholewords)
diff --git a/winio.c b/winio.c
@@ -263,6 +263,9 @@ int nanogetstr(int allowtabs, char *buf, char *def, shortcut s[], int slen,
nanoget_repaint(buf, inputbuf, x);
+ /* Make sure any editor screen updates are displayed before getting input */
+ wrefresh(edit);
+
while ((kbinput = wgetch(bottomwin)) != 13) {
for (j = 0; j <= slen - 1; j++) {
if (kbinput == s[j].val) {