diff options
| author | denin <dvzubarev@yandex.ru> | 2017-02-05 18:45:20 +0300 |
|---|---|---|
| committer | Eivind Fonn <evfonn@gmail.com> | 2018-09-14 14:16:33 +0200 |
| commit | 6fde982d731e2cc4e5f6bded6f8955ab2daee3b7 (patch) | |
| tree | 5c9f04270b903cadcc1d4df3c95fe502a44ba929 | |
| parent | c1189d36159ddf9c4d600164f166bc1a12644305 (diff) | |
fix for append from visual state
| -rw-r--r-- | evil-commands.el | 1 | ||||
| -rw-r--r-- | evil-tests.el | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/evil-commands.el b/evil-commands.el index 6ae1a45..d11875b 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 41031cb..ea970d6 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) |
