Skip to content

Commit

Permalink
Fixed a high cpu usage bug due to not exiting out of the OnIdle funct…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
ajpalkovic committed Jun 9, 2010
1 parent eb7abb7 commit d73e4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SnippetList.cpp
Expand Up @@ -71,7 +71,7 @@ void SnippetList::OnIdle(wxIdleEvent& WXUNUSED(event)) {
EditorChangeState newState = m_editorCtrl->GetChangeState(); EditorChangeState newState = m_editorCtrl->GetChangeState();
//If the bundle isn't loaded at startup, then the snippet list won't show any symbols. //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. //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; m_editorState = newState;


//Update the list of snippets/commands to reflect a potentially new syntax //Update the list of snippets/commands to reflect a potentially new syntax
Expand Down

0 comments on commit d73e4c0

Please sign in to comment.