mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-23 01:07:16 +09:00
Small improvement to line selection
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
|
||||
@@ -618,6 +618,7 @@ func (v *View) DisplayView() {
|
||||
selectStyle = style
|
||||
}
|
||||
screen.SetContent(x-v.leftCol, lineN, ' ', nil, selectStyle)
|
||||
x++
|
||||
}
|
||||
|
||||
charNum++
|
||||
|
||||
Reference in New Issue
Block a user