mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Don't delete trailing ws on current line (if in insert mode)
This commit is contained in:
@ -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...
|
||||||
|
Reference in New Issue
Block a user