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

 
 

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

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

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 16 May 2016 10:28:30 AM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

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>
Group administrator
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>
Group administrator
Mon 16 May 2016 11:19:33 AM UTC, comment #1: 

Fixed in git, 18bdde4.

Benno Schulenberg <bens>
Group administrator
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>
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-16 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code