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 committed Jan 28, 2024
1 parent 9e27bb9 commit 3366a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evil-commands.el
Original file line number Diff line number Diff line change
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 3366a6e

Please sign in to comment.