Fix previous search, remove incremental previous search

This commit is contained in:
Daniel Imms
2018-12-26 15:49:08 -08:00
parent 76302e2146
commit e0d535e0da
3 changed files with 41 additions and 27 deletions
+3 -3
View File
@@ -113,9 +113,9 @@ function createTerminal(): void {
});
addDomListener(actionElements.findPrevious, 'keyup', (e) => {
const searchOptions = getSearchOptions();
searchOptions.incremental = e.key !== `Enter`;
term.findPrevious(actionElements.findPrevious.value, searchOptions);
if (e.key === `Enter`) {
term.findPrevious(actionElements.findPrevious.value, getSearchOptions());
}
});
// fit is called within a setTimeout, cols and rows need this.