Fix search scrolling up
This commit is contained in:
+1
-2
@@ -70,8 +70,7 @@ export class SearchHelper {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this._terminal.selectionManager.setSelection(result.col, result.row, result.term.length);
|
this._terminal.selectionManager.setSelection(result.col, result.row, result.term.length);
|
||||||
const scrollAmount = Math.max(Math.min(result.row - this._terminal.ydisp, this._terminal.ybase), 0);
|
this._terminal.scrollDisp(result.row - this._terminal.ydisp, false);
|
||||||
this._terminal.scrollDisp(scrollAmount, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Consolidate with SelectionManager function
|
// TODO: Consolidate with SelectionManager function
|
||||||
|
|||||||
Reference in New Issue
Block a user