bugGNU nano - Bugs: bug #47836, undoing internal spell fixes loses...

 
 

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

bug #47836: undoing internal spell fixes loses data

Submitter:  Benno Schulenberg <bens>
Submitted:  Tue 03 May 2016 11:49:19 AM UTC
   
 
Severity:  4 - Important Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Wed 04 May 2016 05:56:23 PM UTC, comment #2: 

Fixed in git, 433c7e5.

Benno Schulenberg <bens>
Group administrator
Wed 04 May 2016 12:53:18 PM UTC, comment #1: 

First patch that prevents the loss of data.  (The cursor position isn't yet adjusted correctly.)

(file #37063)

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

When spell checking a marked region with the internal spell fixer, and this marked region starts or ends somewhere inside a line, then undoing any made fixes loses the data that was before the start and after the end of the marked region.

To reproduce, run 'src/nano +10,6 README', and type: M-A  M-G  ,41  <Enter>.  Change "GPL" to "GPLxxxx" and answer 'All'.  (Notice that the cursor has moved three positions to the left, relatively, but that is another problem.)  Now press M-U.  Note how the head and the tail of the line have disappeared.  Nano has mangled the data.

This is the same bug as the one that existed with normal replacing, which was fixed in commit 08a52c1.  A similar fix needs to be made for spell fixing.

Benno Schulenberg <bens>
Group administrator

 

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

Attached Files

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2016-06-20 bens Severity3 - Normal 4 - Important
        Open/ClosedOpen Closed
    2016-05-04 bens StatusIn Progress Fixed
    2016-05-04 bens Attached File- Added dont-partition-spelling.patch, #37063
        StatusNone In Progress

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code