mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-10 06:40:24 +09:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user