mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-09 17:20:57 +00:00
parent
a95b17a4e7
commit
8cf56bfc56
1 changed files with 6 additions and 0 deletions
|
|
@ -242,6 +242,12 @@ func (c *Cursor) UpN(amount int) {
|
|||
|
||||
if c.X > util.CharacterCount(bytes) || (amount < 0 && proposedY == c.Y) {
|
||||
c.X = util.CharacterCount(bytes)
|
||||
c.StoreVisualX()
|
||||
}
|
||||
|
||||
if c.X < 0 || (amount > 0 && proposedY == c.Y) {
|
||||
c.X = 0
|
||||
c.StoreVisualX()
|
||||
}
|
||||
|
||||
c.Y = proposedY
|
||||
|
|
|
|||
Loading…
Reference in a new issue