summary refs log tree commit diff stats
path: root/compiler/cgen.nim
diff options
context:
space:
mode:
authorAlberto Torres <kungfoobar@gmail.com>2023-08-18 21:13:27 +0200
committerGitHub <noreply@github.com>2023-08-18 21:13:27 +0200
commit20cbdc2741e9e34a99288ded9664378afc80acb6 (patch)
treee53149b0ae7dbbde78568e25f4be73d7f3c0893d /compiler/cgen.nim
parenteb83d20d0d1ab1d0cbd9574a3dc1bcdae949e865 (diff)
downloadNim-20cbdc2741e9e34a99288ded9664378afc80acb6.tar.gz
Fix #22366 by making nimlf_/nimln_ part of the same line (#22503)
Fix #22366 by making nimlf_/nimln_ part of the same line so the debugger doesn't advance to the next line before executing it
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r--compiler/cgen.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index 811f89983..6d301dc47 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -312,10 +312,10 @@ proc genLineDir(p: BProc, t: PNode) =
       (p.prc == nil or sfPure notin p.prc.flags) and t.info.fileIndex != InvalidFileIdx:
       if freshLine:
         if lastFileIndex == t.info.fileIndex:
-          linefmt(p, cpsStmts, "nimln_($1);\n",
+          linefmt(p, cpsStmts, "nimln_($1);",
               [line])
         else:
-          linefmt(p, cpsStmts, "nimlf_($1, $2);\n",
+          linefmt(p, cpsStmts, "nimlf_($1, $2);",
               [line, quotedFilename(p.config, t.info)])
 
 proc accessThreadLocalVar(p: BProc, s: PSym)