mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 01:56:31 +03:00
Don't remove keybindings of formatter and linter plugins if any document is still open.
Converting from UTF8 now checks for BOM UTF8 strings.
This commit is contained in:
@@ -2331,9 +2331,11 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
|
||||
if ( !appInstance )
|
||||
return;
|
||||
UICodeEditor* editor = event->getNode()->asType<UICodeEditor>();
|
||||
updateEditorTabTitle( editor );
|
||||
editor->getDocument().resetSyntax();
|
||||
editor->setSyntaxDefinition( editor->getDocument().getSyntaxDefinition() );
|
||||
editor->runOnMainThread( [this, editor] {
|
||||
updateEditorTabTitle( editor );
|
||||
editor->getDocument().resetSyntax();
|
||||
editor->setSyntaxDefinition( editor->getDocument().getSyntaxDefinition() );
|
||||
} );
|
||||
} );
|
||||
|
||||
auto docChanged = [this]( const Event* event ) {
|
||||
|
||||
Reference in New Issue
Block a user