[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] minor display bug when searching/scrolling

From: David Lawrence Ramsey
Subject: Re: [Nano-devel] minor display bug when searching/scrolling
Date: Tue, 10 Jan 2006 03:15:03 -0500
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

Mike Frysinger wrote:

>i'll just attach the file since it's small :)
>first resize your terminal to 80x27 ... then:
>$ nano -I
>alt+s (turn on smooth scrolling)
>alt+x (turn off the help stuff at the bottom)
>ctrl+w (search for "ldso")
>alt+w (find again three times, until the search goes down to the next
>line) >
>notice that the line that was first matched (it was so long that it
>scrolls off the terminal) has not been reset ... it still displays with
>the right hand scroll, e.g. the $ marker is on the left side of the
>screen ... if you keep doing a search again (alt+w) until it wraps
>around (Search Wrapped), the original matched line will have its
>display messed up and the cursor will be sitting in the middle of what
>appears to be empty whitespace

Thanks for the report. The attached patch should fix this in 1.3.10. It's already in CVS.

diff -ur nano-1.3.10/src/winio.c nano-1.3.10-fixed/src/winio.c
--- nano-1.3.10/src/winio.c     2005-12-08 02:24:54.000000000 -0500
+++ nano-1.3.10-fixed/src/winio.c       2006-01-10 03:10:14.000000000 -0500
@@ -2772,6 +2772,11 @@
        openfile->edittop = old_edittop;
+       /* Update old_current if we're not on the first page and/or
+        * we're not on the same page as before. */
+       if (do_redraw)
+           update_line(old_current, 0);
        /* Scroll the edit window up or down until edittop is in range
         * of current. */
        if (nlines < 0)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]