Closed Bug 313017 Opened 19 years ago Closed 19 years ago

spell checker get mixed up after fixing a word

Categories

(Thunderbird :: Message Compose Window, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 261930

People

(Reporter: jim.software, Assigned: mscott)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051017 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051017 Firefox/1.6a1

The spellcheck will start at a bad location after fixing words when the
corrected word is longer than the misspelled word.

To reproduce
1) open composer window
2) enter the following text into the body of the message:
   anneversy month
3) run spellchecker
4) replace anneversy with anniversary
5) spellcheck will now highlight and try to correct the word "onth"

The internal buffer or the variable used to keep track of the current position
does not take into account the length of the words being replace verses the ones
be added.

Reproducible: Always

Steps to Reproduce:
1. open composer window
2. enter the following text into the body of the message:
   anneversy month
3. run spellchecker
4. replace anneversy with anniversary
5. spellcheck will now highlight and try to correct the word "onth"

Actual Results:  
spellcheck tried to correct the word "onth" instead of "month"

Expected Results:  
Find the end of the replaced word (anniversary) and continue checking the
document from there.
Reproducible with Mozilla 1.8b1, SeaMonkey 1.0a and SeaMonkey 1.1a/20051013,
duplicate of bug 261930?
Yes, duplicate.

*** This bug has been marked as a duplicate of 261930 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.