add to col, not row

This commit is contained in:
meganrogge
2022-03-18 15:27:50 -04:00
parent 15c2432b6f
commit 85683a457d
+2 -2
View File
@@ -100,8 +100,8 @@ export class SearchAddon implements ITerminalAddon {
// set start row and col to avoid redoing work
const key = Array.from(this._searchResults.keys()).pop()?.split('-');
if (key?.length === 2) {
searchOptions.startRow = Number.parseInt(key[0]) + 1;
searchOptions.startCol = Number.parseInt(key[1]);
searchOptions.startRow = Number.parseInt(key[0]);
searchOptions.startCol = Number.parseInt(key[1]) + 1;
}
} else {
// new search, clear out the old decorations