mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 01:08:15 +01:00
Revert "[storage] New attempt to save cursor position"
This reverts commit c826e556a1.
This commit is contained in:
@@ -65,19 +65,13 @@ void EditorController::viewWillAppear() {
|
||||
ViewController::viewWillAppear();
|
||||
m_editorView.loadSyntaxHighlighter();
|
||||
if(GlobalPreferences::sharedGlobalPreferences()->cursorSaving()) {
|
||||
int offset = m_script.cursorOffset();
|
||||
if (offset != -1) {
|
||||
m_editorView.setCursorLocation(m_editorView.text() + offset);
|
||||
} else {
|
||||
m_editorView.setCursorLocation(m_editorView.text() + strlen(m_editorView.text()));
|
||||
}
|
||||
m_editorView.setCursorLocation(m_editorView.text() + strlen(m_editorView.text()));
|
||||
} else {
|
||||
m_editorView.setCursorLocation(m_editorView.text() + strlen(m_editorView.text()));
|
||||
}
|
||||
}
|
||||
|
||||
void EditorController::viewDidDisappear() {
|
||||
m_script.setCursorOffset(m_editorView.cursorLocation() - m_script.content());
|
||||
m_editorView.resetSelection();
|
||||
m_menuController->scriptContentEditionDidFinish();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user