mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-19 14:22:42 -06:00
ide: Fixed include files assist
This commit is contained in:
parent
aad8cf819f
commit
933deda654
1 changed files with 4 additions and 2 deletions
|
|
@ -466,12 +466,14 @@ void AssistEditor::Assist(bool macros)
|
|||
assist_type.Clear();
|
||||
assist_item.Clear();
|
||||
include_assist = false;
|
||||
if(IncludeAssist())
|
||||
return;
|
||||
|
||||
int pos = GetCursor();
|
||||
ReadIdBackPos(pos, false); // libclang does not work well if file is not truncated for autocomplete (?)
|
||||
assist_cursor = pos;
|
||||
|
||||
if(IncludeAssist())
|
||||
return;
|
||||
|
||||
CurrentFileContext cfx = CurrentContext(pos);
|
||||
int line = GetLinePos(pos);
|
||||
if(cfx.content.GetCount())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue