nimsuggest: minor bugfix; include file should be dirtied, no the belonging module

This commit is contained in:
Andreas Rumpf
2016-11-06 17:13:40 +01:00
committed by Araq
parent 2caf08855f
commit 2f7c2de1c2

View File

@@ -158,8 +158,8 @@ proc execute(cmd: IdeCmd, file, dirtyfile: string, line, col: int;
discard "no need to recompile anything"
else:
let modIdx = graph.parentModule(dirtyIdx)
graph.markDirty modIdx
graph.markClientsDirty modIdx
graph.markDirty dirtyIdx
graph.markClientsDirty dirtyIdx
if gIdeCmd != ideMod:
graph.compileProject(cache, modIdx)
if gIdeCmd in {ideUse, ideDus}: