From 4bee4987bca82dc3694d7b62bc315059a56cdbd9 Mon Sep 17 00:00:00 2001 From: deb0ch Date: Sun, 16 Apr 2017 13:27:47 +0200 Subject: [PATCH] clear numbers-table only on update (and now also when 'frame-local) --- winum.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winum.el b/winum.el index 54dbca2..d4da7f8 100644 --- a/winum.el +++ b/winum.el @@ -394,6 +394,7 @@ POSITION: position in the mode-line." (setq winum--window-count (length windows) winum--remaining (winum--available-numbers)) (winum--set-window-vector (make-vector (1+ winum--window-count) nil)) + (clrhash (winum--get-numbers-table)) (when winum-assign-func (mapc (lambda (w) (with-selected-window w @@ -482,8 +483,7 @@ windows, however a higher number can be reserved by the user-defined (cons window-vector (make-hash-table :size winum--window-count)) winum--frames-table) - (setq winum--window-vector window-vector) - (clrhash winum--numbers-table))) + (setq winum--window-vector window-vector))) (defun winum--get-window-vector () "Return the window vector used to get a window given a number.