quash evil-line-move error when moving to shorter line

This commit is contained in:
mir 2024-02-24 17:33:12 -09:00
parent 7507ced110
commit b670384b0b

View File

@ -2,7 +2,7 @@
;; Copyright (C) 2023 mir
;; Author: mir <mir@mirmarq42.xyz>
;; Author: mir <mir@marq42.xyz>
;; Keywords:
;; This program is free software; you can redistribute it and/or modify
@ -54,7 +54,11 @@
(quote undo-redo)
(quote undo-fu)))
:init (evil-mode t)
:config (mir/evil-config))
:config (mir/evil-config)
(advice-add #'evil-line-move :around
(lambda (orig &rest args)
(ignore-errors
(apply orig args)))))
(use-package evil-collection
:after evil
:diminish evil-collection-unimpaired-mode