If a setting is not defined, use the default, not the zero value

This commit is contained in:
Zachary Yedidia
2016-04-30 15:02:33 -04:00
parent e0f20fbb55
commit 56cdfcfe46
2 changed files with 18 additions and 9 deletions

View File

@@ -211,7 +211,7 @@ func (c *Cursor) SelectTo(loc int) {
c.curSelection[1] = loc
} else {
c.curSelection[0] = loc
c.curSelection[1] = c.origSelection[0] + 1
c.curSelection[1] = c.origSelection[0]
}
}