Remove deleted frames from winum--frames-table

This commit is contained in:
Alexander Miller 2017-09-19 19:36:01 +02:00 committed by Thomas de Beauchêne
parent bfef4ae6d0
commit cf691de506

View file

@ -583,6 +583,13 @@ internal data structures according to the new scope."
(setq winum--last-used-scope winum-scope)
(winum--init)))
(defun winum--remove-deleted-frame-from-frames-table (frame)
"Remove FRAME from `winum--frames-table' after it was deleted."
(when winum--frames-table
(remhash frame winum--frames-table)))
(add-hook 'delete-frame-functions #'winum--remove-deleted-frame-from-frames-table)
(push "^No window numbered .$" debug-ignored-errors)
(push "^Got a dead window .$" debug-ignored-errors)
(push "^Invalid `winum-scope': .$" debug-ignored-errors)