File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -4650,10 +4650,12 @@ if the previous state was Emacs state."
4650
4650
`(progn
4651
4651
(with-current-buffer ,(current-buffer )
4652
4652
(evil-change-state ', evil-state )
4653
- (setq evil-move-cursor-back ', evil-move-cursor-back )))
4653
+ (setq evil-move-cursor-back ', evil-move-cursor-back
4654
+ evil-move-beyond-eol ', evil-move-beyond-eol )))
4654
4655
'post-command-hook )
4655
4656
(setq evil-move-cursor-back nil )
4656
4657
(evil-normal-state)
4658
+ (setq evil-move-beyond-eol t )
4657
4659
(evil-echo " Switched to Normal state for the next command ..." ))
4658
4660
4659
4661
(defun evil-stop-execute-in-emacs-state ()
Original file line number Diff line number Diff line change @@ -306,7 +306,13 @@ with `M-x evil-tests-run'"))
306
306
(" \C -oA" )
307
307
(ert-info (" Should return to insert state after insert state command" )
308
308
(should (evil-insert-state-p)))
309
- (" bcdef[]\n " ))))
309
+ (" bcdef[]\n " ))
310
+ (ert-info (" Cursor is placed correctly afterwards" )
311
+ (evil-test-buffer
312
+ :state insert
313
+ " abcdefg[]"
314
+ (" \C -o~" )
315
+ " abcdefG[]" ))))
310
316
311
317
(defun evil-test-suppress-keymap (state )
312
318
" Verify that `self-insert-command' is suppressed in STATE"
You can’t perform that action at this time.
0 commit comments