mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-07 00:10:59 +00:00
Fix build error
This commit is contained in:
parent
53290919c8
commit
c997fc362b
1 changed files with 2 additions and 2 deletions
|
|
@ -100,10 +100,10 @@ func (c *Cursor) SelectLine() {
|
|||
|
||||
// AddLineToSelection adds the current line to the selection
|
||||
func (c *Cursor) AddLineToSelection() {
|
||||
if c.loc < c.selectionStart {
|
||||
if c.Loc() < c.selectionStart {
|
||||
c.Start()
|
||||
c.selectionStart = c.Loc()
|
||||
} else if c.loc > c.selectionEnd {
|
||||
} else if c.Loc() > c.selectionEnd {
|
||||
c.End()
|
||||
c.selectionEnd = c.Loc()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue