about summary refs log tree commit diff stats
path: root/src/ips
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-25 12:02:36 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-25 12:02:36 +0100
commit22abd1b12b66e75f75fe01dc33abaa7d74597b3c (patch)
tree8442a25e9d2425c17478f4d5a61cbed99d5e823b /src/ips
parentb493b135ac052a1ae4bb126ea23a8fc991d7e8d6 (diff)
downloadchawan-22abd1b12b66e75f75fe01dc33abaa7d74597b3c.tar.gz
ips/editor: make default line 1
Diffstat (limited to 'src/ips')
-rw-r--r--src/ips/editor.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ips/editor.nim b/src/ips/editor.nim
index 3bce0fa9..bfa88cb5 100644
--- a/src/ips/editor.nim
+++ b/src/ips/editor.nim
@@ -31,7 +31,7 @@ func formatEditorName(editor, file: string, line: int): string =
       result &= ' '
     result &= file
 
-proc openEditor*(term: Terminal, config: Config, file: string, line = 0): bool =
+proc openEditor*(term: Terminal, config: Config, file: string, line = 1): bool =
   var editor = config.editor
   if editor == "":
     editor = getEnv("EDITOR")