bugGNU nano - Bugs: bug #49821, clicking with the mouse misplaces...

 
 

bug #49821: clicking with the mouse misplaces the cursor when using line numbers in softwrap mode

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sat 10 Dec 2016 04:09:56 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 10 Dec 2016 08:22:23 PM UTC, comment #3:

Fixed in git, e9fde7d7.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 10 Dec 2016 05:27:10 PM UTC, comment #2:

Here is a patch that seems to fix the issue for me.

(file #39194)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 10 Dec 2016 05:04:05 PM UTC, comment #1:

Ehm... David's patch is not the correct fix. With it applied, when I click on the "s" in "since" in line 225, the cursor lands on the "l" in "location" in line 221! That is much worse.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 10 Dec 2016 04:09:56 PM UTC, original submission:

(Noticed because of the first patch in bug #49812 reported by David.)

Run 'stty cols 70 && src/nano -lm$ +222 doc/faq.html' and then click with the mouse on the word "since" in line 225. See how the cursor gets misplaced eight characters to the right: twice the margin. The above patch by David fixes this.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 13 Dec 2016 11:50:45 AM UTCbensOpen/ClosedOpen=>Closed
    Sat 10 Dec 2016 08:22:23 PM UTCbensStatusIn Progress=>Fixed
    Sat 10 Dec 2016 05:27:10 PM UTCbensAttached File-=>Added use-the-actual-width-instead.patch, #39194
    Sat 10 Dec 2016 05:04:05 PM UTCbensAssigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1