Skip to content

Commit

Permalink
fix for append from visual state
Browse files Browse the repository at this point in the history
  • Loading branch information
dvzubarev authored and TheBB committed Sep 14, 2018
1 parent c1189d3 commit 6fde982
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions evil-commands.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 8 additions & 0 deletions evil-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6fde982

Please sign in to comment.