提交 2f587c6d 编写于 作者: Z Zachary Yedidia

Fix moving to end of line on cursor down

上级 5b426aee
......@@ -258,7 +258,7 @@ func (c *Cursor) UpN(amount int) {
runes := []rune(c.buf.Line(c.Y))
c.X = c.GetCharPosInLine(proposedY, c.LastVisualX)
if c.X > len(runes) {
if c.X > len(runes) || (amount < 0 && proposedY == c.Y) {
c.X = len(runes)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册