Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added optional case sensitive searching #1663

Merged
merged 5 commits into from Sep 12, 2018

Conversation

alexr00
Copy link
Contributor

@alexr00 alexr00 commented Sep 6, 2018

Fixes #1657

@alexr00 alexr00 closed this Sep 6, 2018
@alexr00 alexr00 reopened this Sep 6, 2018
Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks great, I think it just needs the conflicts fixed

const lowerTerm = term.toLowerCase();
let searchIndex = lowerStringLine.indexOf(lowerTerm);
private _findInLine(term: string, y: number, caseSensitive: boolean): ISearchResult {
const stringLIne = this._terminal._core.buffer.translateBufferLineToString(y, true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I -> i

@Tyriar Tyriar added this to the 3.8.0 milestone Sep 8, 2018
@alexr00
Copy link
Contributor Author

alexr00 commented Sep 10, 2018

Conflicts resolved.

Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just that extra test

@Tyriar Tyriar merged commit 74474da into xtermjs:master Sep 12, 2018
@alexr00 alexr00 deleted the alexr00/caseSearch branch September 13, 2018 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants