bugGNU nano - Bugs: bug #59749, when using line numbers, mouse...

 
 

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

bug #59749: when using line numbers, mouse clicks on shortcuts are shifted

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 21 Dec 2020 06:38:52 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Tue 22 Dec 2020 07:22:00 PM UTC, comment #1: 

Fixed in git, commit 265bdd94, by subtracting 'margin' from the x coordinate only when the click was in the edit window.

Benno Schulenberg <bens>
Group administrator
Mon 21 Dec 2020 06:38:52 PM UTC, original submission:  

To reproduce, run:

src/nano --ignore --line --mouse IMPROVEMENTS

Now click exactly on the ^G in the bottom bar -- nothing happens.  Now click exactly on the ^O -- the main help text is shown.

The problem is that get_mouseinput() always subtracts 'margin' from the x coordinate, even when the click is outside of the edit window.

(Original report was by Obelix, sideways in the patch posted in https://lists.gnu.org/archive/html/nano-devel/2020-12/msg00035.html.)

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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-01-15 bens Open/ClosedOpen Closed
    2020-12-22 bens Severity3 - Normal 2 - Minor
        StatusIn Progress Fixed
    2020-12-22 bens StatusNone In Progress

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code