aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2004-09-27 13:24:18 +0000
committernyamatongwe <unknown>2004-09-27 13:24:18 +0000
commit640b1e0607283d422b90b2f02e80680ac885af71 (patch)
tree5669f5221926397ef02e7d939ffcd165bf4235e9 /src
parent8096dd364d17a939bbe58d735cc388f56b412210 (diff)
downloadscintilla-mirror-640b1e0607283d422b90b2f02e80680ac885af71.tar.gz
Fix for bug 1025190 where a whole word find would match on
a word at the end of the file despite the word having an additional non-matching letter.
Diffstat (limited to 'src')
-rw-r--r--src/Document.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index a8cca8a00..76fa456cc 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -884,7 +884,7 @@ bool Document::IsWordStartAt(int pos) {
* the next character is of a different character class.
*/
bool Document::IsWordEndAt(int pos) {
- if (pos < Length() - 1) {
+ if (pos < Length()) {
charClassification ccPrev = WordCharClass(CharAt(pos-1));
return (ccPrev == ccWord || ccPrev == ccPunctuation) &&
(ccPrev != WordCharClass(CharAt(pos)));