Browse files

Fixed a high cpu usage bug due to not exiting out of the OnIdle funct…

  • Loading branch information...
1 parent eb7abb7 commit d73e4c091e4aa318e5beef707eb9541db9845627 @ajpalkovic ajpalkovic committed Jun 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/SnippetList.cpp
@@ -71,7 +71,7 @@ void SnippetList::OnIdle(wxIdleEvent& WXUNUSED(event)) {
EditorChangeState newState = m_editorCtrl->GetChangeState();
//If the bundle isn't loaded at startup, then the snippet list won't show any symbols.
//The bundle won't get reloaded later, cuz ScopeChanged will return false. So, it has to wait till they switch tabs or make a change.
- //if(!ScopeChanged(scope) && newState == m_editorState) return;
+ if(!ScopeChanged(scope) && newState == m_editorState) return;
m_editorState = newState;
//Update the list of snippets/commands to reflect a potentially new syntax

0 comments on commit d73e4c0

Please sign in to comment.