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

 
 

bug #47836: undoing internal spell fixes loses data

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Tue 03 May 2016 11:49:19 AM UTC  
 
Severity: 4 - ImportantStatus: 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.

 

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

Fixed in git, 433c7e5.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 20 Jun 2016 10:01:53 AM UTCbensSeverity3 - Normal=>4 - Important
      Open/ClosedOpen=>Closed
    Wed 04 May 2016 05:56:23 PM UTCbensStatusIn Progress=>Fixed
    Wed 04 May 2016 12:53:18 PM UTCbensAttached File-=>Added dont-partition-spelling.patch, #37063
      StatusNone=>In Progress

    Back to the top


    Powered by Savane 3.1-cleanup1