Reset line wrap info on document reset.

This commit is contained in:
Martín Lucas Golini
2024-05-20 21:19:22 -03:00
parent 3c033ed193
commit c768277c71
14 changed files with 54 additions and 88 deletions

View File

@@ -70,6 +70,7 @@ void StatusAppOutputController::run( const ProjectBuildCommand& runData,
mAppOutput->getDocument().setSyntaxDefinition( synDef );
mAppOutput->getVScrollBar()->setValue( 1.f );
mAppOutput->getDocument().getHighlighter()->setMaxTokenizationLength( 2048 );
mAppOutput->setLineWrapMode( LineWrapMode::Word );
mScrollLocked = true;
UIPushButton* runButton = getRunButton( mApp );
@@ -193,10 +194,9 @@ void StatusAppOutputController::createContainer() {
if ( nullptr == pbm )
return;
if ( !pbm->hasRunConfig() ) {
UIMessageBox::New(
UIMessageBox::OK,
mApp->i18n( "must_configure_build_and_run_config",
"You must first add a build and run configuration" ) )
UIMessageBox::New( UIMessageBox::OK,
mApp->i18n( "must_configure_build_and_run_config",
"You must first add a build and run configuration" ) )
->setCloseShortcut( { KEY_ESCAPE } )
->setTitle( mApp->getWindowTitle() )
->showWhenReady()