Added support for searching accross wrapped lines

This commit is contained in:
Alex Ross
2018-09-10 10:20:31 -07:00
parent 12e38404a2
commit 09028d4d86
3 changed files with 80 additions and 41 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ export class SearchHelper implements ISearchHelper {
* @return The search result if it was found.
*/
protected _findInLine(term: string, y: number, searchOptions: ISearchOptions = {}): ISearchResult {
const lowerStringLine = this._terminal._core.buffer.translateBufferLineToString(y, true).toLowerCase();
const lowerStringLine = this._terminal._core.buffer.translateBufferLineToStringWithWrap(y, true).toLowerCase();
const lowerTerm = term.toLowerCase();
let searchIndex = -1;
if (searchOptions.regex) {