branch: elpa/evil
commit 25885ddc07d4cf09c600b2b71f226cfcf3a5746d
Author: Tom Dalziel <[email protected]>
Commit: Tom Dalziel <[email protected]>

    Improve on evil-append's determination of eolp
    
    Fixes #1617
---
 evil-commands.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/evil-commands.el b/evil-commands.el
index c371accdf7..2bb14baa0b 100644
--- a/evil-commands.el
+++ b/evil-commands.el
@@ -2603,7 +2603,10 @@ the lines."
         (evil-visual-rotate 'lower-right)
         (backward-char)
         (evil-append count)))
-    (unless (eolp) (forward-char))
+    (unless (= (current-column)
+               (save-excursion (end-of-line) (current-column)))
+      ;; Subtly different from `(eolp)' - see issue #1617
+      (forward-char))
     (evil-insert count vcount skip-empty-lines)
     (add-hook 'post-command-hook #'evil-maybe-remove-spaces)))
 

Reply via email to