diff --git a/src/apps/debugger/gui/team_window/SourceView.cpp b/src/apps/debugger/gui/team_window/SourceView.cpp index dc1519de11..6af778d90f 100644 --- a/src/apps/debugger/gui/team_window/SourceView.cpp +++ b/src/apps/debugger/gui/team_window/SourceView.cpp @@ -897,6 +897,8 @@ void SourceView::TextView::SetSourceCode(SourceCode* sourceCode) { fMaxLineWidth = -1; + fSelectionStart = fSelectionBase = fSelectionEnd = SelectionPoint(-1, -1); + fClickCount = 0; BaseView::SetSourceCode(sourceCode); }