bugGNU nano - Bugs: bug #44542, after an external spell check, the...

 
 

bug #44542: after an external spell check, the mark has moved

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sat 14 Mar 2015 05:52:12 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 21 Mar 2015 09:42:45 PM UTC, comment #1:

Fixed in SVN r5144 by Mark Majeres.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 14 Mar 2015 05:52:12 PM UTC, original submission:

When the mark is on, and the current line contains one or more tabs before the cursor, then the mark is moved backward several positions after each call of an external spell checker.
(I'm using «set speller "aspell -x -c"» in my .nanorc.)

To reproduce, start nano and type into the empty buffer:
aa<Tab>bb cc
Then type:
<Home> M-A <End> ^T x
See how the cursor has moved back five positions, from just after the cc to the first b of the bb.

Somehow for repositioning the mark it counts a tab as one position instead of the one to seven it actually is. The above five positions back are the eight positions of the tab minus the two a-s and the tab character itself.

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:
   

No files currently attached

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 23 Mar 2015 06:28:07 PM UTCbensOpen/ClosedOpen=>Closed
    Sat 21 Mar 2015 09:42:45 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1