mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fixed problem with broken backspace/delete on MacOS
This commit is contained in:
@@ -153,7 +153,7 @@ public class BackspaceHandler extends EditorWriteActionHandler {
|
||||
if (editor.getSelectionModel().hasSelection() || editor.getSelectionModel().hasBlockSelection()) return null;
|
||||
|
||||
LogicalPosition caretPos = editor.getCaretModel().getLogicalPosition();
|
||||
if (caretPos.line == 1 || caretPos.column == 0) {
|
||||
if (caretPos.line == 0 || caretPos.column == 0) {
|
||||
return null;
|
||||
}
|
||||
int lineStartOffset = editor.getDocument().getLineStartOffset(caretPos.line);
|
||||
|
||||
Reference in New Issue
Block a user