bugGNU nano - Bugs: bug #47933, spell checking fails when similar...

 
 

bug #47933: spell checking fails when similar misspelled words are on the same line

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Mon 16 May 2016 10:28:30 AM 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.

 

Tue 17 May 2016 10:31:08 AM UTC, comment #3:

A simpler reproduction recipe is: run nano and type this phrase:

The dummy is too dumm.

Then type ^T. In older nanos (using the internal spell checker), it will just say that spell checking has finished -- it finds nothing wrong. In current git, it will correctly highlight the last word and ask for a replacement for "dumm".

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 16 May 2016 04:16:05 PM UTC, comment #2:

This bug is old -- it exists since at least nano 2.2.1. But before, when the file was still partitioned when doing spell fixes, it was more subtle: it would simply not find misspelled words when they were preceded on the same line by a bigger word that contained the misspelled word. But nowadays, not finding a misspelled word at all is a mayday.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 16 May 2016 11:19:33 AM UTC, comment #1:

Fixed in git, 18bdde4.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 16 May 2016 10:28:30 AM UTC, original submission:

To reproduce, run 'src/nano +10,10 README', and type:
M-A <Down> <Down> ^T x <Enter> Y N <Enter> ^T

The second run of the spell checker finishes immediately because it is looking for the misspelling "GPL", finds GPLx first, sees that this GPL is part of a larger word, and then... does not continue searching in the same line, but skips to the next, and then cannot find GPL any more, reports an internal error (which we don't seee, because it gets overwritten with the "Finished checking spelling" message), and quits.

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 20 Jun 2016 10:05:07 AM UTCbensOpen/ClosedOpen=>Closed
    Mon 16 May 2016 11:19:33 AM UTCbensStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1