Skip to content

Commit

Permalink
evil-commands: replace (backward-delete-char) with (delete-char)
Browse files Browse the repository at this point in the history
Fixes a warning:

    evil-commands.el:2125:15: Warning: ‘backward-delete-char’ is for interactive use only; use ‘delete-char’ instead.
  • Loading branch information
Hi-Angel authored and axelf4 committed Jan 28, 2024
1 parent 9e27bb9 commit 5995f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evil-commands.el
Expand Up @@ -2122,7 +2122,7 @@ the current line."
(interactive "<c>")
(if (and (eq 'self-insert-command last-command)
(eq ?0 (char-before)))
(progn (backward-delete-char 1)
(progn (delete-char -1)
(evil-delete-indentation))
(evil-shift-left (line-beginning-position) (line-beginning-position 2) count t)))

Expand Down

0 comments on commit 5995f6f

Please sign in to comment.