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 ;; Copyright (C) 2023 mir
;; Author: mir <mir@mirmarq42.xyz> ;; Author: mir <mir@marq42.xyz>
;; Keywords: ;; Keywords:
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -54,7 +54,11 @@
(quote undo-redo) (quote undo-redo)
(quote undo-fu))) (quote undo-fu)))
:init (evil-mode t) :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 (use-package evil-collection
:after evil :after evil
:diminish evil-collection-unimpaired-mode :diminish evil-collection-unimpaired-mode