Skip to content

Conversation

@RishabhKothaari
Copy link
Contributor

@RishabhKothaari RishabhKothaari commented Apr 25, 2020

Fixes #2840. We must wrap back search to 0th column if we have a currentSelection. @Tyriar let me know if any further changes are required.

Search must wrap back as it does when there are multiple lines.
@RishabhKothaari RishabhKothaari changed the title #2840 #2840 Different behavior when search two same words in only one row Apr 25, 2020
@RishabhKothaari RishabhKothaari changed the title #2840 Different behavior when search two same words in only one row Different behavior when search two same words in only one row Apr 25, 2020
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.

Seems to work well, it should also work for find previous as well

@RishabhKothaari
Copy link
Contributor Author

@Tyriar do you mean if we hit the beginning(column 0) with find previous we must wrap again to the end of the column or last search selection?

RishabhKothaari and others added 3 commits April 25, 2020 17:33
@RishabhKothaari RishabhKothaari requested a review from Tyriar April 26, 2020 00:49
@RishabhKothaari
Copy link
Contributor Author

Let me know if any other changes are required.

@Tyriar Tyriar added this to the 4.6.0 milestone Apr 27, 2020
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.

Works great thanks 🙂

@Tyriar Tyriar merged commit 6f1f4ba into xtermjs:master May 3, 2020
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.

Different behavior when search two same words in only one row

2 participants