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
editor: highlight multiple selections and words on cursor #2281
base: master
Are you sure you want to change the base?
Conversation
c1750b8
to
21156dd
Compare
I fixed the issue with the highlighting of multiple selection regions. ✌️ ( I also made the change to match whole words if the Edit: |
21156dd
to
2aaf3d5
Compare
8fe7468
to
5b02fdb
Compare
TODO: I saw that the view is painted frequently and the search is run each time, so maybe we should cache the selection search results so that redraws are as fast as possible? |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #2281 +/- ##
=========================================
- Coverage 9.06% 9.06% -0.01%
=========================================
Files 137 137
Lines 59462 59468 +6
=========================================
Hits 5393 5393
- Misses 54069 54075 +6
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
d11d7ef
to
417a8dc
Compare
|
I'm not sure but I think I found a bug in selection_find.search_string = Some("ä".to_string());
selection_find.whole_words = true;
selection_find.update_find(buffer.text(), start, end, false); Snippet from logs:
|
417a8dc
to
47c6b73
Compare
678a6b7
to
60b59af
Compare
60b59af
to
5593960
Compare
Hi!
I reworked the
paint_selection_find
function so that:data.doc.selection_find
is used directly because aFindProgress
isn't really necessary for an implicit search like this which is also limited to the visible lines.Ctrl+F
search.Ctrl+F
).start
andend
are swapped).Notes/Issues: