We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0778ba commit e961bdfCopy full SHA for e961bdf
1 file changed
src/refactoring_guru/command/example/commands/CutCommand.java
@@ -15,9 +15,10 @@ public boolean execute() {
15
backup();
16
String source = editor.textField.getText();
17
editor.clipboard = editor.textField.getSelectedText();
18
- editor.textField.setText(cutString(source, editor.clipboard));
+ editor.textField.setText(cutString(source));
19
return true;
20
}
21
+ }
22
23
private String cutString(String source) {
24
String start = source.substring(0, editor.textField.getSelectionStart());
0 commit comments