Skip to content

Commit

Permalink
Keep the right boundary only growing
Browse files Browse the repository at this point in the history
Fixes #123
  • Loading branch information
Eugen Kremer committed Oct 9, 2023
1 parent 49cc6bf commit 9566901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/view/EditorView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void CEditorView::setIndicatorLinesUpdater(int begin, int end){
if (m_IndPanel.m_IndicLinesUp.m_Begin > begin || (m_IndPanel.m_IndicLinesUp.m_End == 0 /* first time */))
m_IndPanel.m_IndicLinesUp.m_Begin = begin;

if (end == -1 || m_IndPanel.m_IndicLinesUp.m_End < end )
if (m_IndPanel.m_IndicLinesUp.m_End != -1 && (end == -1 || m_IndPanel.m_IndicLinesUp.m_End < end))
m_IndPanel.m_IndicLinesUp.m_End = end;

ForegroundIdleHook::getInstance()->add(&m_IndPanel.m_IndicLinesUp);
Expand Down

0 comments on commit 9566901

Please sign in to comment.