瀏覽代碼

Fix skipping when matching word is at EOF

Chernyavsky Andrey 1 月之前
父節點
當前提交
8f9628e6af
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      IDE/src/ui/QuickFind.bf

+ 1 - 1
IDE/src/ui/QuickFind.bf

@@ -279,7 +279,7 @@ namespace IDE.ui
 
 			bool Matches(int32 idx)
 			{
-				if (idx + findText.Length >= ewc.mData.mTextLength)
+				if (idx + findText.Length > ewc.mData.mTextLength)
 					return false;
 
 				for (var i = 0; i < findText.Length; i++)