mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -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-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...
|
||||
|
Reference in New Issue
Block a user