[code] End of revert #113

This commit is contained in:
Laury
2022-03-31 22:23:21 +02:00
parent 7e64124ddc
commit a770ee919b

View File

@@ -65,7 +65,7 @@ void EditorController::viewWillAppear() {
ViewController::viewWillAppear();
m_editorView.loadSyntaxHighlighter();
if(GlobalPreferences::sharedGlobalPreferences()->cursorSaving()) {
m_editorView.setCursorLocation(m_script.content() + *m_script.CursorPosition());
m_editorView.setCursorLocation(m_editorView.text() + strlen(m_editorView.text()));
} else {
m_editorView.setCursorLocation(m_editorView.text() + strlen(m_editorView.text()));
}