From c77be5d40f102d6c7df66d5060c0c0b002dd72b9 Mon Sep 17 00:00:00 2001 From: Gadzhi Kharkharov Date: Mon, 13 Sep 2021 18:07:34 +0300 Subject: [PATCH] don't pass 0-line/col in run --- kak/run.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kak/run.go b/kak/run.go index 55ccefd..917ced9 100644 --- a/kak/run.go +++ b/kak/run.go @@ -17,7 +17,10 @@ func Run(file string, line int, col int) error { if file != "" { kakExecArgs = append(kakExecArgs, file) - kakExecArgs = append(kakExecArgs, fmt.Sprintf("+%d:%d", line, col)) + + if line != 0 { + kakExecArgs = append(kakExecArgs, fmt.Sprintf("+%d:%d", line, col)) + } } fmt.Println(kakExecArgs)