Skip to content

Commit

Permalink
Fixed merge errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexr00 committed Sep 10, 2018
1 parent d5c17a0 commit bcf223e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/addons/search/SearchHelper.ts
Expand Up @@ -113,7 +113,8 @@ export class SearchHelper implements ISearchHelper {
if (this._terminal._core.buffer.lines.get(y).isWrapped) {
return;
}
const lowerStringLine = this.translateBufferLineToStringWithWrap(y, true).toLowerCase(); const lowerTerm = term.toLowerCase();
const lowerStringLine = this.translateBufferLineToStringWithWrap(y, true).toLowerCase();
const lowerTerm = term.toLowerCase();
let searchIndex = -1;
if (searchOptions.regex) {
const searchRegex = RegExp(lowerTerm, 'g');
Expand Down
9 changes: 1 addition & 8 deletions src/addons/search/search.test.ts
Expand Up @@ -13,19 +13,12 @@ class MockTerminalPlain {}

class MockTerminal {
private _core: any;
<<<<<<< HEAD
public searchHelper: TestSearchHelper;
constructor(options: any) {
this._core = new (require('../../../lib/Terminal').Terminal)(options);
this.searchHelper = new TestSearchHelper(this as any);
=======
public searchHelper: ISearchHelper;
public cols: number;
constructor(options: any) {
this._core = new (require('../../../lib/Terminal').Terminal)(options);
this.searchHelper = new SearchHelper(this as any);
this.searchHelper = new TestSearchHelper(this as any);
this.cols = options.cols;
>>>>>>> Fixed issues around searching lines twice and considering a wrapped line both it's own line and part of the previous line.
}
get core(): any {
return this._core;
Expand Down

0 comments on commit bcf223e

Please sign in to comment.