From 61dfca0da5ad1b07f5de82e3256b7b13798cd317 Mon Sep 17 00:00:00 2001 From: Eitaro Fukamachi Date: Wed, 20 Sep 2023 01:48:47 +0000 Subject: [PATCH] Fix the window-delete-hook error regarding to vi-mode jumplist. --- extensions/vi-mode/jumplist.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/vi-mode/jumplist.lisp b/extensions/vi-mode/jumplist.lisp index d8c95a74e..b16dd5341 100644 --- a/extensions/vi-mode/jumplist.lisp +++ b/extensions/vi-mode/jumplist.lisp @@ -139,8 +139,8 @@ (let ((jumplist (make-jumplist))) (setf (window-parameter window :vi-mode-jumplist) jumplist) - (push (lambda () (delete-jumplist jumplist)) - (window-delete-hook window)) + (add-hook (window-delete-hook window) + (lambda () (delete-jumplist jumplist))) jumplist))) (defun (setf window-jumplist) (jumplist window)