Skip to content

Commit

Permalink
fix Find Back action
Browse files Browse the repository at this point in the history
(cherry picked from commit fcf43c1)
  • Loading branch information
dzmipt committed Mar 20, 2022
1 parent b6e9a95 commit 611f3fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/studio/ui/SearchPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private void doSearch(SearchContext context, SearchAction action) {
}
}

int pos = textArea.getCaretPosition();
int pos = context.getSearchForward() ? textArea.getSelectionEnd() : textArea.getSelectionStart();
textArea.setSelectionStart(pos);
textArea.setSelectionEnd(pos);
SearchResult result;
Expand Down

0 comments on commit 611f3fe

Please sign in to comment.