Implemented tab-stops support (SpartanJ/ecode#55). Not enabled by default until I'm sure I did not break anything.

This commit is contained in:
Martín Lucas Golini
2025-04-09 21:22:17 -03:00
parent 8df0793590
commit 4146bfef6f
10 changed files with 299 additions and 149 deletions

View File

@@ -2368,6 +2368,7 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
editor->setFoldDrawable( findIcon( "chevron-down", PixelDensity::dpToPxI( 12 ) ) );
editor->setFoldedDrawable( findIcon( "chevron-right", PixelDensity::dpToPxI( 12 ) ) );
editor->setEnableFlashCursor( config.flashCursor );
editor->setTabStops( mConfig.doc.tabStops );
doc.setAutoCloseBrackets( !mConfig.editor.autoCloseBrackets.empty() );
doc.setAutoCloseBracketsPairs( makeAutoClosePairs( mConfig.editor.autoCloseBrackets ) );