mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-21 21:01:53 +00:00
Do correct cursor right with storing visual X in CursorRight action (#3103)
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
This commit is contained in:
parent
2d82362a66
commit
4e383dd110
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ func (h *BufPane) CursorLeft() bool {
|
||||||
func (h *BufPane) CursorRight() bool {
|
func (h *BufPane) CursorRight() bool {
|
||||||
if h.Cursor.HasSelection() {
|
if h.Cursor.HasSelection() {
|
||||||
h.Cursor.Deselect(false)
|
h.Cursor.Deselect(false)
|
||||||
h.Cursor.Loc = h.Cursor.Loc.Move(1, h.Buf)
|
h.Cursor.Right()
|
||||||
} else {
|
} else {
|
||||||
tabstospaces := h.Buf.Settings["tabstospaces"].(bool)
|
tabstospaces := h.Buf.Settings["tabstospaces"].(bool)
|
||||||
tabmovement := h.Buf.Settings["tabmovement"].(bool)
|
tabmovement := h.Buf.Settings["tabmovement"].(bool)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue