Skip to content

Commit 13f29e5

Browse files
committed
fixed an issue were regex fails to detect matches
1 parent f1d3dc0 commit 13f29e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/addon-search/src/SearchAddon.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ export class SearchAddon extends Disposable implements ITerminalAddon , ISearchA
347347
downDirectionLastResult = this._find(
348348
term,
349349
// using previous term length will cause problems with regex
350-
downDirectionLastResult.col + downDirectionLastResult.term.length >= this._terminal!.cols ? downDirectionLastResult!.row + 1 : downDirectionLastResult!.row,
351-
downDirectionLastResult.col + downDirectionLastResult.term.length >= this._terminal!.cols ? 0 : downDirectionLastResult!.col + 1,
350+
downDirectionLastResult.row,
351+
downDirectionLastResult.col + 1,
352352
'down'
353353
);
354354

0 commit comments

Comments
 (0)