mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-23 05:35:50 +00:00
Fix SelectLine
This commit is contained in:
parent
ab4abf2a93
commit
0fac02cd08
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue