summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSimon Hafner <hafnersimon@gmail.com>2015-05-24 14:29:43 -0500
committerSimon Hafner <hafnersimon@gmail.com>2015-05-24 14:52:16 -0500
commit928b730d1b6ee24e39c0ed5e6c5326f0c3f002a6 (patch)
tree37b5bf884cf01b2c6e3d5cbc835d3082841f4256
parent5ad9d874c32a72ab473d3455b5d72f915729d195 (diff)
downloadNim-928b730d1b6ee24e39c0ed5e6c5326f0c3f002a6.tar.gz
fixes #2694
-rw-r--r--compiler/nimsuggest/nimsuggest.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/nimsuggest/nimsuggest.nim b/compiler/nimsuggest/nimsuggest.nim
index 3b4aa658d..b049899cb 100644
--- a/compiler/nimsuggest/nimsuggest.nim
+++ b/compiler/nimsuggest/nimsuggest.nim
@@ -118,7 +118,7 @@ proc execute(cmd: IdeCmd, file, dirtyfile: string, line, col: int) =
 
   gTrackPos = newLineInfo(dirtyIdx, line, col)
   gErrorCounter = 0
-  if not isKnownFile:
+  if isKnownFile:
     compileProject(dirtyIdx)
   else:
     compileProject()