Skip to content

Commit

Permalink
txs restores wrong top line with folded lines (#3627)
Browse files Browse the repository at this point in the history
  • Loading branch information
octaeder committed May 5, 2024
1 parent 9971c78 commit 80f3c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/texstudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3599,8 +3599,8 @@ void Texstudio::restoreSession(const Session &s, bool showProgress, bool warnMis
}
}
edView->editor->setCursorPosition(line, col, false);
edView->editor->scrollToFirstLine(f.firstLine+1);
edView->document->foldLines(f.foldedLines);
edView->editor->scrollToFirstLine(f.firstLine+1);
editors->moveToTabGroup(edView, f.editorGroup, -1);
} else {
missingFiles.append(f.fileName);
Expand Down

0 comments on commit 80f3c55

Please sign in to comment.