提交 e1bb3ad6 编写于 作者: A Alex Dima

Allow for partial line search scopes

上级 f5283025
......@@ -156,7 +156,10 @@ export class FindModelBoundToEditorModel {
findScope = this._decorations.getFindScope();
}
if (findScope !== null) {
findScope = new Range(findScope.startLineNumber, 1, findScope.endLineNumber, this._editor.getModel().getLineMaxColumn(findScope.endLineNumber));
if (findScope.startLineNumber !== findScope.endLineNumber) {
// multiline find scope => expand to line starts / ends
findScope = new Range(findScope.startLineNumber, 1, findScope.endLineNumber, this._editor.getModel().getLineMaxColumn(findScope.endLineNumber));
}
}
let findMatches = this._findMatches(findScope, false, MATCHES_LIMIT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册