From 2b6a909b342058b1d1485b566036d430ab207b69 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 2 May 2022 08:07:12 -0700 Subject: [PATCH] FastClassify emit fix --- IDE/src/ui/SourceViewPanel.bf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/IDE/src/ui/SourceViewPanel.bf b/IDE/src/ui/SourceViewPanel.bf index c879e122..b12d119d 100644 --- a/IDE/src/ui/SourceViewPanel.bf +++ b/IDE/src/ui/SourceViewPanel.bf @@ -428,6 +428,7 @@ namespace IDE.ui bool mWantsCollapseRefresh; bool mRefireMouseOverAfterRefresh; bool mWantsBackgroundAutocomplete; + bool mSkipFastClassify; QueuedAutoComplete mQueuedAutoComplete ~ delete _; public bool mWantsSpellCheck; int32 mTicksSinceTextChanged; @@ -1488,7 +1489,7 @@ namespace IDE.ui public void DoFastClassify() { - if ((!mIsSourceCode) || (mEmbedKind != .None)) + if ((!mIsSourceCode) || (mSkipFastClassify)) return; //Debug.WriteLine("DoFastClassify"); @@ -6252,6 +6253,8 @@ namespace IDE.ui editData.mTextIdData.Insert(0, editData.mTextLength, ref editData.mNextCharId); sourceViewPanel.mEditWidget.mEditWidgetContent.ContentChanged(); + // We have a full classify now, FastClassify will just mess it up + sourceViewPanel.mSkipFastClassify = true; if (prevCursorLineAndColumn.mLine >= embedEWC.GetLineCount()) embedEWC.CursorLineAndColumn = .(embedEWC.GetLineCount() - 1, prevCursorLineAndColumn.mColumn);