bugGNU nano - Bugs: bug #48629, doing a <Left> after coming...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #48629: doing a <Left> after coming from a long line, redraws the current line unnecessarily

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 25 Jul 2016 04:25:53 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Mon 01 Aug 2016 06:06:41 PM UTC, comment #2: 

Fixed in git, c9e9964.

Benno Schulenberg <bens>
Group administrator
Tue 26 Jul 2016 08:49:36 AM UTC, comment #1: 

See bug #48627 for a first patch, covering <Left>, <Right>, <Home>, <End>, <Up> and <Down>.

Benno Schulenberg <bens>
Group administrator
Mon 25 Jul 2016 04:25:53 PM UTC, original submission:  

Apply the diagnostic patch from bug #48627.  Then create a file with two lines, a long one (that scrolls horizontally) and a short one (that doesn't).  Then run src/nano on that file, type <End> on the long line, then move the cursor with <Up> or <Down> to the short line.  Type <Left> -- the line is redrawn, even though there is nothing to show or hide, nothing changed.

Expected behavior: when a line does not need horizontal scrolling or unscrolling, it should not be redrawn.

(The problem in do_left() is that it looks at the placewewant, which might be beyond the length of the line and beyond the screen.  It should instead look at the actual position of the cursor before it is moved left.)

Benno Schulenberg <bens>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-11 bens Open/ClosedOpen Closed
    2016-08-01 bens StatusIn Progress Fixed
    2016-07-26 bens StatusNone In Progress

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code