GavriYashar / Matlab-Editor-Plugin

Extends features for the matlab editor, Bookmarks, FileStructure, Clipboard stack
MIT License
74 stars 12 forks source link

changed update #78

Closed GavriYashar closed 7 years ago

GavriYashar commented 7 years ago

EditorApp.setCallbacks

@Override
public void changedUpdate(DocumentEvent e) {
    EditorWrapper.setDirtyIfLastEditorChanged(editor);
    EditorWrapper.setIsActiveEditorDirty(true);
}

does not get called on change

changedUpdate gets called only if the cursor has changed a section.

%% 1
|<Click1
%% 2
|<Click2
|<Click3
  1. click: (%% 1) changed update gets called
  2. click: (%% 2) changed update gets called
  3. click: (%% 2) changed update does not get called

need to change on focus gained or sth.