Skip to content

Commit

Permalink
don't pass 0-line/col in run
Browse files Browse the repository at this point in the history
  • Loading branch information
kkga committed Sep 13, 2021
1 parent 8b5b7e1 commit c77be5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kak/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c77be5d

Please sign in to comment.