Repository navigation
Find panel: the review fixes missing from #1176 (#1179) - #1180
Merged
Merged
Conversation
PR #1176 was merged without its review fixes; they were not staged. Showing the panel again (F3 or Ctrl+F after Esc) set the find text to the selected text. That replaced it with the first line of a selection that became the new scope, and with the case of the panel's own match found case-insensitively. The find text now stays in both cases, unless it is empty. The decision is FindPanel.reopenDecision(), with a unittest. The panel's own match counts only while the text is unchanged since it was found, so a new selection at the same positions after an edit becomes the scope. Replace while searching back moved the caret to the start of the replacement but left the empty selection at its end. It is moved to the caret too, and the editor state is notified again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1179.
PR #1176 was merged without the fixes from its code review: they were in the working tree but not staged. This PR adds them, plus the fixes from their own review.
FindPanel.reopenDecision(), with a unittest; checked that it fails with the old logic.Dropped from the review list: an atomic counter for
EditableContent.revision. EditableContent isn't thread-safe, so it is used from one thread like the rest of the UI, and the thread-local counter stays.Testing
dub test(Linux and Windows) anddub test -c console: pass, no leak lines. D-Scanner: clean.id:; Replace all replaces exactly the 2 matches in it.🤖 Generated with Claude Code