mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-16 22:10:26 +00:00
cursor: Remove selection reduction by one character on Deselect()
This commit is contained in:
parent
aaf45a871f
commit
50639015d7
2 changed files with 1 additions and 2 deletions
|
|
@ -293,7 +293,6 @@ func (h *BufPane) CursorLeft() bool {
|
|||
func (h *BufPane) CursorRight() bool {
|
||||
if h.Cursor.HasSelection() {
|
||||
h.Cursor.Deselect(false)
|
||||
h.Cursor.Right()
|
||||
} else {
|
||||
tabstospaces := h.Buf.Settings["tabstospaces"].(bool)
|
||||
tabmovement := h.Buf.Settings["tabmovement"].(bool)
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ func (c *Cursor) Deselect(start bool) {
|
|||
if start {
|
||||
c.Loc = c.CurSelection[0]
|
||||
} else {
|
||||
c.Loc = c.CurSelection[1].Move(-1, c.buf)
|
||||
c.Loc = c.CurSelection[1]
|
||||
}
|
||||
c.ResetSelection()
|
||||
c.StoreVisualX()
|
||||
|
|
|
|||
Loading…
Reference in a new issue