plugins/snippets/lib/snippets/explorer.rb in redcar-0.9.2 vs plugins/snippets/lib/snippets/explorer.rb in redcar-0.10
- old
+ new
@@ -9,11 +9,11 @@
def update_list(query)
return [] if query == ""
matching_snippets = filter_and_rank_by(all_snippets, query, 1000) do |s|
display(s)
end
- current_scope = @document.cursor_scope
+ current_scope = Redcar.update_gui { @document.cursor_scope }
@last_list = matching_snippets.select do |snippet|
if snippet.scope
!!JavaMateView::ScopeMatcher.get_match(snippet.scope, current_scope)
else
true
@@ -43,6 +43,6 @@
controller = @document.controllers(Snippets::DocumentController).first
controller.start_snippet!(snippet)
end
end
end
-end
\ No newline at end of file
+end