Properly show end of line selection

This commit is contained in:
Zachary Yedidia
2017-06-12 15:49:21 -04:00
parent 0165c4a40a
commit 37ad137012

View File

@@ -863,7 +863,7 @@ func (v *View) DisplayView() {
screen.ShowCursor(lastX, yOffset+lastChar.visualLoc.Y)
cx, cy = lastX, yOffset+lastChar.visualLoc.Y
}
realLoc = Loc{lastChar.realLoc.X, realLineN}
realLoc = Loc{lastChar.realLoc.X + 1, realLineN}
visualLoc = Loc{lastX - xOffset, lastChar.visualLoc.Y}
} else if len(line) == 0 {
if tabs[curTab].CurView == v.Num && !v.Cursor.HasSelection() &&