Skip to content

Commit b5223cc

Browse files
committed
Ensure that the selected code is not folded during "Search and Replace"
Fixes #4845
1 parent 300b1d7 commit b5223cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/cc/arduino/view/findreplace/FindReplace.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ private boolean find(boolean wrap, boolean backwards, boolean searchTabs, int or
323323
}
324324
}
325325

326+
editor.getCurrentTab().getTextArea().getFoldManager().ensureOffsetNotInClosedFold(nextIndex);
327+
326328
if (nextIndex == -1) {
327329
// Nothing found on this tab: Search other tabs if required
328330
if (searchTabs) {

0 commit comments

Comments
 (0)