Skip to content

Commit

Permalink
fix so ScrollForDefinition will work with already open document
Browse files Browse the repository at this point in the history
  • Loading branch information
jafl committed Dec 2, 2024
1 parent 4fd5622 commit 6f34266
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code_crusader/code/DocumentManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,8 @@ DocumentManager::PrivateOpenTextDocument
textDoc->RevertIfChangedByOthers(forceReload);
if (!lineRange.IsEmpty())
{
textDoc->SelectLines(lineRange);

auto* task = jnew JXUrgentFunctionTask(textDoc, [textDoc, lineRange]()
{
textDoc->SelectLines(lineRange);
Expand Down

0 comments on commit 6f34266

Please sign in to comment.