mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-17 06:20:28 +00:00
Fix goto issue
This commit is contained in:
parent
dde52132cf
commit
9127152d93
2 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue