Don't delete trailing ws on current line (if in insert mode)
This commit is contained in:
parent
44fc21d3b8
commit
f0ce0c4718
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ enable multiple minor modes for the same regexp.")
|
||||||
(line-beginning-position)
|
(line-beginning-position)
|
||||||
(line-end-position))))
|
(line-end-position))))
|
||||||
ad-do-it
|
ad-do-it
|
||||||
(when (string-match-p "^[\s\t]*$" linestr)
|
(when (and (evil-insert-state-p)
|
||||||
|
(string-match-p "^[\s\t]*$" linestr))
|
||||||
(insert linestr))))
|
(insert linestr))))
|
||||||
|
|
||||||
;; If file is oversized...
|
;; If file is oversized...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue