mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-22 00:40:23 +00:00
parent
e912b7de12
commit
ec2976b069
1 changed files with 2 additions and 0 deletions
|
|
@ -23,6 +23,8 @@ func (h *BufPane) ScrollUp(n int) {
|
|||
if v.StartLine >= n {
|
||||
v.StartLine -= n
|
||||
h.SetView(v)
|
||||
} else {
|
||||
v.StartLine = 0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue