Skip to content

Commit e961bdf

Browse files
committed
Fixed a typo.
1 parent c0778ba commit e961bdf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/refactoring_guru/command/example/commands/CutCommand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ public boolean execute() {
1515
backup();
1616
String source = editor.textField.getText();
1717
editor.clipboard = editor.textField.getSelectedText();
18-
editor.textField.setText(cutString(source, editor.clipboard));
18+
editor.textField.setText(cutString(source));
1919
return true;
2020
}
21+
}
2122

2223
private String cutString(String source) {
2324
String start = source.substring(0, editor.textField.getSelectionStart());

0 commit comments

Comments
 (0)