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

 
 

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

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

Submitter:  Benno Schulenberg <bens>
Submitted:  Sat 14 Mar 2015 05:52:12 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sat 21 Mar 2015 09:42:45 PM UTC, comment #1: 

Fixed in SVN r5144 by Mark Majeres.

Benno Schulenberg <bens>
Group administrator
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>
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
    2015-03-23 bens Open/ClosedOpen Closed
    2015-03-21 bens StatusNone Fixed
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code