about summary refs log tree commit diff stats
path: root/src/extern/editor.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/extern/editor.nim')
-rw-r--r--src/extern/editor.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extern/editor.nim b/src/extern/editor.nim
index 345b1d67..9fb0fd89 100644
--- a/src/extern/editor.nim
+++ b/src/extern/editor.nim
@@ -40,9 +40,9 @@ proc openEditor*(term: Terminal, config: Config, file: string, line = 1): bool =
   let cmd = formatEditorName(editor, file, line)
   return runProcess(term, cmd)
 
-proc openInEditor*(term: Terminal, config: Config, input: var string): bool =
+proc openInEditor*(term: Terminal, config: Config, tmpdir: string,
+    input: var string): bool =
   try:
-    let tmpdir = config.external.tmpdir
     let tmpf = getTempFile(tmpdir)
     if input != "":
       writeFile(tmpf, input)