commit 079b5495c87791d7eb4a23e1f6b0a1d05a8bc8dc
parent 0ae5c722bdcd432f44edd348b1418c7a69355ad4
Author: Chris Allegretta <chrisa@asty.org>
Date: Thu, 19 Sep 2002 23:54:53 +0000
winio.c:edit_refresh() - Turn on leaveok() so the cursor doesn't bounce around the screen while we're updating it (most noticeable when using color syntax over a very slow connection)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1281 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 19 insertions(+), 10 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -415,10 +415,24 @@ GNU nano 1.1.10 - 07/25/2002
do_credits()
- Fix for the i18ned credits so it will compile with -pedantic
(DLR & Chris).
+ do_help()
+ - Add support for the handled keyboard escape sequences in the
+ help menu, as they are needed with some terminals (e.g. xterm
+ with TERM=ansi). (DLR)
+ edit_refresh()
+ - Turn on leaveok() so the cursor doesn't bounce around the
+ screen while we're updating it (most noticeable when using
+ color syntax over a very slow connection).
+ do_replace_highlight()
+ - When using regexps, make sure the highlight is the length of
+ the search result and not the regexp string. (DLR)
nanogetstr()
- After the user presses Enter at the prompt, refresh the edit
window in case there's a list of possible filename matches
(left over from attempted tab completion) on it. (DLR)
+ statusbar()
+ - Limit statusbar display to the number of columns less four, and
+ don't allow it to go over its original row. (David Benbennick)
titlebar()
- Tweak text spacing and printing so that the titlebar text looks
better on smaller terminals. (Carl Drinkwater)
@@ -431,16 +445,6 @@ GNU nano 1.1.10 - 07/25/2002
beforehand) as ^@'s. (DLR)
- Fix to properly treat ASCII 128-159 as control characters.
(DLR)
- statusbar()
- - Limit statusbar display to the number of columns less four, and
- don't allow it to go over its original row. (David Benbennick)
- do_help()
- - Add support for the handled keyboard escape sequences in the
- help menu, as they are needed with some terminals (e.g. xterm
- with TERM=ansi). (DLR)
- do_replace_highlight()
- - When using regexps, make sure the highlight is the length of
- the search result and not the regexp string. (DLR)
- configure.ac:
- Added ms to ALL_LINGUAS (Jordi).
- Merged acconfig.h in (Jordi).
diff --git a/winio.c b/winio.c
@@ -1151,6 +1151,9 @@ void edit_refresh(void)
if (edittop == NULL)
edittop = current;
+ /* Don't make the cursor jump around the scrrn whilst updating */
+ leaveok(edit, TRUE);
+
editbot = edittop;
while (nlines < editwinrows) {
update_line(editbot, current_x);
@@ -1163,6 +1166,7 @@ void edit_refresh(void)
break;
editbot = editbot->next;
}
+
/* If noloop == 1, then we already did an edit_update without finishing
this function. So we don't run edit_update again */
if (!currentcheck && !noloop) {
@@ -1180,6 +1184,7 @@ void edit_refresh(void)
/* What the hell are we expecting to update the screen if this isn't
here? Luck?? */
wrefresh(edit);
+ leaveok(edit, FALSE);
}
/*