The cmd_f_search flag introduced in #51073 was never cleared when switching to vim-style search commands, causing collapse_matches to remain false and match ranges to appear as visual selections. Reset cmd_f_search when n/N or */# are used, restore Normal mode if Visual was entered due to the non-collapsed selection, and fix an early return in visual select_match that leaked collapse_matches. Fixes #53896 Self-Review Checklist: - [ ] I've reviewed my own diff for quality, security, and reliability - [ ] Unsafe blocks (if any) have justifying comments - [ ] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [ ] Performance impact has been considered and is acceptable Closes #ISSUE Release Notes: - N/A or Added/Fixed/Improved ... Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
2 files changedLine totals unavailable