提交 7e3e420c 编写于 作者: A Alex Dima

Change all respects find state only if the find widget is revealed

上级 b3041cbc
......@@ -811,7 +811,7 @@ export abstract class AbstractSelectHighlightsAction extends EditorAction {
let matches: Range[] = null;
const findState = controller.getState();
if (findState.isRegex && findState.searchString.length > 0) {
if (findState.isRevealed && findState.isRegex && findState.searchString.length > 0) {
matches = editor.getModel().findMatches(findState.searchString, true, findState.isRegex, findState.matchCase, findState.wholeWord, false).map(m => m.range);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册