Skip to content

Commit 5995f6f

Browse files
Hi-Angelaxelf4
authored andcommitted
evil-commands: replace (backward-delete-char) with (delete-char)
Fixes a warning: evil-commands.el:2125:15: Warning: ‘backward-delete-char’ is for interactive use only; use ‘delete-char’ instead.
1 parent 9e27bb9 commit 5995f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evil-commands.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2122,7 +2122,7 @@ the current line."
21222122
(interactive "<c>")
21232123
(if (and (eq 'self-insert-command last-command)
21242124
(eq ?0 (char-before)))
2125-
(progn (backward-delete-char 1)
2125+
(progn (delete-char -1)
21262126
(evil-delete-indentation))
21272127
(evil-shift-left (line-beginning-position) (line-beginning-position 2) count t)))
21282128

0 commit comments

Comments
 (0)