From c997fc362b9e3440ccc93a8193d7376cd1f891b0 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sun, 27 Mar 2016 13:02:02 -0400 Subject: [PATCH] Fix build error --- src/cursor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cursor.go b/src/cursor.go index cdfcafe4..295f0f8a 100644 --- a/src/cursor.go +++ b/src/cursor.go @@ -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() }