Skip to content

Commit

Permalink
fix: unable to replace current selected searching text to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosemoe committed Oct 27, 2023
1 parent a04eaa2 commit de0c232
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,11 @@ public void replaceThis(@NonNull String replacement) {
return;
}
if (isMatchedPositionSelected()) {
editor.commitText(replacement);
if (replacement.isEmpty()) {
editor.deleteText();
} else {
editor.commitText(replacement);
}
} else {
gotoNext();
}
Expand Down

0 comments on commit de0c232

Please sign in to comment.