summary refs log tree commit diff stats
path: root/compiler/service.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/service.nim')
-rw-r--r--compiler/service.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/service.nim b/compiler/service.nim
index b3c7fbc83..6a0cfd292 100644
--- a/compiler/service.nim
+++ b/compiler/service.nim
@@ -65,7 +65,9 @@ proc serve*(action: proc (){.nimcall.}) =
     curCaasCmd = cmd
     processCmdLine(passCmd2, cmd)
     action()
-
+    gDirtyBufferIdx = 0
+    gDirtyOriginalIdx = 0
+    
   let typ = getConfigVar("server.type")
   case typ
   of "stdin":