dengste / minimap

Sidebar showing a "mini-map" of a buffer
172 stars 14 forks source link

Error running timer ‘minimap-update’: (wrong-type-argument window-live-p nil) #25

Open Kabouik opened 2 years ago

Kabouik commented 2 years ago

Thanks for this nice package! I like to be able to enable or disable the minimap manually, but I am getting this error when scrolling when the minimap is hidden (or when scrolling in a buffer where the minimap hasn't been enabled at all):

mouse-minibuffer-check: Minibuffer window is not active
Error running timer ‘minimap-update’: (wrong-type-argument window-live-p nil)

This is my configuration related to minimap:

(global-set-key (kbd "C-c m") 'minimap-mode)

;; Customize
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(minimap-active-region-background ((t (:extend t :background "#1d1f2c" :weight light :width ultra-condensed))))
 '(minimap-current-line-face ((t (:background "#505678" :foreground "#D5E4E6"))))
 '(minimap-font-face ((t (:height 0.75 :family "Iosevka Term Medium Extended")))))

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
'(minimap-always-recenter t)
 '(minimap-dedicated-window t)
 '(minimap-hide-scroll-bar t)
 '(minimap-mode -1)
 '(minimap-recenter-type 'middle)
 '(minimap-recreate-window nil)
 '(minimap-window-location 'right))

I am new to emacs and could not figure out a way to make it detect when the minimap is hidden, and disabling the associated minimaup-update when it is (since I am assuming that this is the issue, although I am not sure). Would you have any idea on how to fix that issue please?