From b670384b0b85dbc73860b8071658ecc6432b0552 Mon Sep 17 00:00:00 2001 From: mir Date: Sat, 24 Feb 2024 17:33:12 -0900 Subject: [PATCH] quash evil-line-move error when moving to shorter line --- lisp/mir-evil.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/mir-evil.el b/lisp/mir-evil.el index 10a7962..34d8daa 100644 --- a/lisp/mir-evil.el +++ b/lisp/mir-evil.el @@ -2,7 +2,7 @@ ;; Copyright (C) 2023 mir -;; Author: mir +;; Author: mir ;; 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