diff options
| author | Neil <nyamatongwe@gmail.com> | 2015-06-11 21:58:21 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2015-06-11 21:58:21 +1000 |
| commit | 8a9e9058908951c059710e514a01f1c17f80eea8 (patch) | |
| tree | 0f4bd36a0e42165a93e19126029540d2b8a2ce65 /src/Document.cxx | |
| parent | 8adf04897051234ab9274a5156e1cc148aa4b401 (diff) | |
| download | scintilla-mirror-8a9e9058908951c059710e514a01f1c17f80eea8.tar.gz | |
Added MultipleSelectAddNext, MultipleSelectAddEach, IsRangeWord, and
TargetWholeDocument.
Diffstat (limited to 'src/Document.cxx')
| -rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 3065b1828..2eb412f73 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1603,7 +1603,7 @@ bool Document::IsWordEndAt(int pos) const { * ends and where the characters on the inside are word or punctuation characters. */ bool Document::IsWordAt(int start, int end) const { - return IsWordStartAt(start) && IsWordEndAt(end); + return (start < end) && IsWordStartAt(start) && IsWordEndAt(end); } bool Document::MatchesWordOptions(bool word, bool wordStart, int pos, int length) const { |
