Skip to content

Commit

Permalink
fix: text action window misuse CodeEditor#deleteText (fix #401)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosemoe committed Mar 21, 2023
1 parent 8ff2177 commit ea68597
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,8 @@ public void onClick(View view) {
editor.selectAll();
return;
} else if (id == R.id.panel_btn_cut) {
editor.copyText();
if (editor.getCursor().isSelected()) {
editor.deleteText();
editor.cutText();
}
} else if (id == R.id.panel_btn_paste) {
editor.pasteText();
Expand Down

0 comments on commit ea68597

Please sign in to comment.