Small improvement to line selection

This commit is contained in:
Zachary Yedidia
2016-06-01 18:00:49 -04:00
parent 742370646f
commit 9e96623725
2 changed files with 2 additions and 1 deletions

View File

@@ -141,7 +141,7 @@ func (c *Cursor) AddLineToSelection() {
}
if loc > c.OrigSelection[1] {
c.End()
c.CurSelection[1] = c.Loc()
c.CurSelection[1] = c.Loc() + 1
c.CurSelection[0] = c.OrigSelection[0]
}

View File

@@ -618,6 +618,7 @@ func (v *View) DisplayView() {
selectStyle = style
}
screen.SetContent(x-v.leftCol, lineN, ' ', nil, selectStyle)
x++
}
charNum++