From e34da71fd68476fe07d6c4c81f947d2521e8c4e9 Mon Sep 17 00:00:00 2001 From: eidheim Date: Wed, 8 Aug 2018 09:22:23 +0200 Subject: [PATCH] Now always fully reparses on file rename to avoid wrong file names in libclang operations --- src/source_clang.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/source_clang.cc b/src/source_clang.cc index f90be76..e6aa4ab 100644 --- a/src/source_clang.cc +++ b/src/source_clang.cc @@ -11,7 +11,6 @@ #include "documentation_cppreference.h" #include "filesystem.h" #include "info.h" -#include "notebook.h" #include "selection_dialog.h" #include "usages_clang.h" @@ -48,10 +47,7 @@ Source::ClangViewParse::ClangViewParse(const boost::filesystem::path &file_path, void Source::ClangViewParse::rename(const boost::filesystem::path &path) { Source::DiffView::rename(path); - if(Notebook::get().get_current_view() == this) - full_reparse(); - else - full_reparse_needed = true; + full_reparse(); } bool Source::ClangViewParse::save() {