diff --git a/evil-commands.el b/evil-commands.el index 6ae1a45b..d11875b0 100644 --- a/evil-commands.el +++ b/evil-commands.el @@ -2301,6 +2301,7 @@ the lines." (evil-insert count vcount skip-empty-lines))) (t (evil-visual-rotate 'lower-right) + (backward-char) (evil-append count))) (unless (eolp) (forward-char)) (evil-insert count vcount skip-empty-lines) diff --git a/evil-tests.el b/evil-tests.el index 41031cb5..ea970d66 100644 --- a/evil-tests.el +++ b/evil-tests.el @@ -596,6 +596,14 @@ Below some empty line" ("aevil rulz " [escape]) ";; Tevil rulz[ ]his buffer is for notes you don't want to save")) +(ert-deftest evil-test-visual-append () + "Test `evil-append' from visual state" + :tags '(evil insert) + (evil-test-buffer + ";; [T]his buffer is for notes you don't want to save" + ("veA_evil rulz " [escape]) + ";; This_evil rulz[ ] buffer is for notes you don't want to save")) + (ert-deftest evil-test-open-above () "Test `evil-open-above'" :tags '(evil insert)