From afeb07a024522288ed02f88ddddce7e22145fc65 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sat, 30 May 2020 12:23:29 -0400 Subject: [PATCH] More fixes for parsecursor Fixes #1695 Fixes #1696 --- cmd/micro/micro.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/micro/micro.go b/cmd/micro/micro.go index b3a3aa49..69962b62 100644 --- a/cmd/micro/micro.go +++ b/cmd/micro/micro.go @@ -45,7 +45,7 @@ func InitFlags() { fmt.Println(" \tCleans the configuration directory") fmt.Println("-config-dir dir") fmt.Println(" \tSpecify a custom location for the configuration directory") - fmt.Println("[FILE]:LINE:COL") + fmt.Println("[FILE]:LINE:COL (if the `parsecursor` option is enabled)") fmt.Println("+LINE:COL") fmt.Println(" \tSpecify a line and column to start the cursor at when opening a buffer") fmt.Println("-options") @@ -171,7 +171,7 @@ func LoadInput() []*buffer.Buffer { screen.TermMessage(err) continue } - flagStartPos = buffer.Loc{col, line - 1} + flagStartPos = buffer.Loc{col - 1, line - 1} } else if len(match) == 3 && match[2] == "" { line, err := strconv.Atoi(match[1]) if err != nil {