From c232fb50fc2cb0f30e3440bc61dbe7c5efacef35 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 11 Jun 2015 21:58:21 +1000 Subject: Added MultipleSelectAddNext, MultipleSelectAddEach, IsRangeWord, and TargetWholeDocument. --- src/Document.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Document.cxx') 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 { -- cgit v1.2.3