Browse Source

Disabled reparse while autocompleting.

merge-requests/365/head
eidheim 11 years ago
parent
commit
6814e5ebf6
  1. 2
      juci/source.cc

2
juci/source.cc

@ -587,6 +587,8 @@ bool Source::ClangView::on_key_press_event(GdkEventKey* key) {
Source::ClangViewAutocomplete::ClangViewAutocomplete(const std::string& file_path, const std::string& project_path, Terminal::Controller& terminal): Source::ClangViewAutocomplete::ClangViewAutocomplete(const std::string& file_path, const std::string& project_path, Terminal::Controller& terminal):
Source::ClangView(file_path, project_path, terminal), selection_dialog(*this) { Source::ClangView(file_path, project_path, terminal), selection_dialog(*this) {
get_buffer()->signal_changed().connect([this](){ get_buffer()->signal_changed().connect([this](){
if(autocomplete_running || selection_dialog.shown)
delayed_reparse_connection.disconnect();
if(!selection_dialog.shown) { if(!selection_dialog.shown) {
auto insert=get_buffer()->get_insert(); auto insert=get_buffer()->get_insert();
auto iter=insert->get_iter(); auto iter=insert->get_iter();

Loading…
Cancel
Save