diff --git a/core/core-editor.el b/core/core-editor.el index b8dad34f2..af65513e0 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -92,7 +92,8 @@ enable multiple minor modes for the same regexp.") (line-beginning-position) (line-end-position)))) ad-do-it - (when (string-match-p "^[\s\t]*$" linestr) + (when (and (evil-insert-state-p) + (string-match-p "^[\s\t]*$" linestr)) (insert linestr)))) ;; If file is oversized...