Mozilla Home
Privacy
Cookies
Legal
Bugzilla
Browse
Advanced Search
New Bug
Reports
Documentation
Log In
Log In with GitHub
or
Remember me
Browse
Advanced Search
New Bug
Reports
Documentation
Attachment 418549 Details for
Bug 355178
[patch]
Improved version of the patch
new.patch (text/plain), 1.15 KB, created by
Massimeddu
(
hide
)
Description:
Improved version of the patch
Filename:
MIME Type:
Creator:
Massimeddu
Size:
1.15 KB
patch
obsolete
>diff -r 36ebd86f43f2 extensions/spellcheck/src/mozInlineSpellWordUtil.cpp >--- a/extensions/spellcheck/src/mozInlineSpellWordUtil.cpp Sat Dec 19 17:00:58 2009 +0000 >+++ b/extensions/spellcheck/src/mozInlineSpellWordUtil.cpp Sun Dec 20 16:50:14 2009 +0100 >@@ -867,21 +867,22 @@ WordSplitState::ClassifyCharacter(PRInt3 > return CHAR_CLASS_SEPARATOR; > if (ClassifyCharacter(aIndex + 1, false) != CHAR_CLASS_WORD) > return CHAR_CLASS_SEPARATOR; > > // char on either side is a word, this counts as a word > return CHAR_CLASS_WORD; > } > >- // all other punctuation >- if (charCategory == nsIUGenCategory::kSeparator || >+ // all other punctuation (only if is first or last char of the word) >+ if ((aIndex == 0 || aIndex == PRInt32(mDOMWordText.Length())-1) && >+ (charCategory == nsIUGenCategory::kSeparator || > charCategory == nsIUGenCategory::kOther || > charCategory == nsIUGenCategory::kPunctuation || >- charCategory == nsIUGenCategory::kSymbol) >+ charCategory == nsIUGenCategory::kSymbol)) > return CHAR_CLASS_SEPARATOR; > > // any other character counts as a word > return CHAR_CLASS_WORD; > } > > > // WordSplitState::Advance
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
|
Review
Attachments on
bug 355178
:
418524
|
418548
|
418549
|
418984
|
419239
|
431603
|
507324
|
507912
|
507917
|
508164
|
510837
|
526149