Fix SyntaxHighlighter::tokenizeAsync (damn i pushed a temporal change into develop).

Fix duplicating the load of session snapshot temporal files.
This commit is contained in:
Martín Lucas Golini
2026-03-22 17:38:51 -03:00
parent dd039fc233
commit 64794b7859
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -732,6 +732,15 @@ void AppConfig::loadDocuments( UICodeEditorSplitter* editorSplitter, json j,
editorLoadedCounter( app );
} else {
auto isSnapshotFile =
std::find_if( sessionSnapshotFiles.begin(), sessionSnapshotFiles.end(),
[&path]( const SessionSnapshotFile& file ) {
return file.cachePath == path;
} );
if ( isSnapshotFile != sessionSnapshotFiles.end() )
return; // snapshot files are loaded later
editorSplitter->loadAsyncFileFromPathInNewTab(
path,
[this, curTabWidget, selection, totalToLoad, currentPage, app, path,