mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
Fix SelectLine
This commit is contained in:
@@ -110,7 +110,11 @@ func (c *Cursor) SelectLine() {
|
|||||||
c.Start()
|
c.Start()
|
||||||
c.curSelection[0] = c.Loc()
|
c.curSelection[0] = c.Loc()
|
||||||
c.End()
|
c.End()
|
||||||
c.curSelection[1] = c.Loc() + 1
|
if len(c.v.buf.lines)-1 > c.y {
|
||||||
|
c.curSelection[1] = c.Loc() + 1
|
||||||
|
} else {
|
||||||
|
c.curSelection[1] = c.Loc()
|
||||||
|
}
|
||||||
|
|
||||||
c.origSelection = c.curSelection
|
c.origSelection = c.curSelection
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user