Skip to content

Commit

Permalink
Fix issue #2556: "Debug Assertion Failed!" Error When Refreshing Afte…
Browse files Browse the repository at this point in the history
…r Deleting All Content in Left or Right Pane
  • Loading branch information
sdottaka committed Nov 26, 2024
1 parent 8627544 commit 42ef851
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Src/GhostTextBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,8 @@ void CGhostTextBuffer::RemoveAllGhostLines()

// Discard unused entries in one shot
m_aLines.resize(newnl);
if (newnl == 0)
m_aLines.push_back({ nullptr, 0 });
RecomputeRealityMapping();
}
}
Expand Down

0 comments on commit 42ef851

Please sign in to comment.