Don't delete trailing ws on current line (if in insert mode)

This commit is contained in:
Henrik Lissner 2016-03-23 11:52:19 -04:00
parent 44fc21d3b8
commit f0ce0c4718

View file

@ -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...