Fix build error

This commit is contained in:
Zachary Yedidia
2016-03-27 13:02:02 -04:00
parent 53290919c8
commit c997fc362b

View File

@@ -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()
}