bugGNU nano - Bugs: bug #47834, cursor position is not preserved...

 
 

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

bug #47834: cursor position is not preserved when doing internal spell fixing

Submitter:  Benno Schulenberg <bens>
Submitted:  Tue 03 May 2016 11:03:51 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Tue 03 May 2016 11:30:58 AM UTC, comment #2: 

Fixed in git, 937c478.

This also fixes a secondary bug: when respelling "GPL" into a much longer word (say, "GPLxxxyyy"), it would not see and thus not replace the second occurrence of "GPL" -- why exactly is too confusing to understand, but never mind, it is fixed.

Benno Schulenberg <bens>
Group administrator
Tue 03 May 2016 11:10:11 AM UTC, comment #1: 

Ehm, that should have been 'src/nano +10,17 README'.

Benno Schulenberg <bens>
Group administrator
Tue 03 May 2016 11:03:51 AM UTC, original submission:  

When using the internal spell fixer and fixing misspellings on the line where the cursor is when the speller is invoked, and when the fixes change the length of the words, then the relative cursor position is not maintained.

To reproduce, run 'src/nano +9,17 README'.  See the cursor is on the "a" before "GPL-friendly".  Then type ^T to run the internal spell checker (don't have one set in your .nanorc).  Ignore "cd" and "devel", and then change "GPL" to "GPLxxx" and answer Yes twice, then press ^C to cut the spell-fixing session short.  Now see that the cursor is on the "or" before "a GPL-friendly".

Expected behavior: the cursor should stay on the word and letter it was on before the spell fixing started, just like with normal replacing.

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

    Date Changed by Updated Field Previous Value => Replaced by
    2016-06-20 bens Open/ClosedOpen Closed
    2016-05-03 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code