mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-08 08:00:20 +09:00
Fix goto issue
This commit is contained in:
@@ -57,7 +57,7 @@ func BufMapKey(k Event, action string) {
|
||||
BufKeyStrings[k] = action
|
||||
actionfns := make([]func(*BufPane) bool, len(actions))
|
||||
for i, a := range actions {
|
||||
a = strings.TrimSpace(a)
|
||||
// a = strings.TrimSpace(a)
|
||||
var afn func(*BufPane) bool
|
||||
if strings.HasPrefix(action, "command:") {
|
||||
a = strings.SplitN(a, ":", 2)[1]
|
||||
|
||||
@@ -755,6 +755,7 @@ func (h *BufPane) GotoCmd(args []string) {
|
||||
line = util.Clamp(line-1, 0, h.Buf.LinesNum()-1)
|
||||
h.Cursor.GotoLoc(buffer.Loc{0, line})
|
||||
}
|
||||
h.Relocate()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user