ecode: Improved tabs icons. Sanitize cursor position when reloading a file.

This commit is contained in:
Martín Lucas Golini
2022-06-01 15:00:58 -03:00
parent 835dc3a55a
commit 5e9f5b4389
4 changed files with 6 additions and 1 deletions

View File

@@ -2054,6 +2054,8 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
editor->addEventListener( Event::OnDocumentLoaded, docChanged );
editor->addEventListener( Event::OnDocumentChanged, docChanged );
editor->addEventListener( Event::OnDocumentSave, docChanged );
editor->addEventListener( Event::OnEditorTabReady, docChanged );
editor->showMinimap( config.minimap );