Helm: Properly remove helm-ff--cache-mode-reset-timer from post-command-hook.

master
Pierre Neidhardt 2021-02-21 13:48:41 +01:00
parent 0232ba6a8a
commit 1dfccd7c56
1 changed files with 3 additions and 6 deletions

View File

@ -74,16 +74,13 @@
;; Default needs special font ;; Default needs special font
helm-ff-cache-mode-lighter "" helm-ff-cache-mode-lighter ""
helm-ff-keep-cached-candidates nil ; 'all tends to run out-of-sync to frequently.
helm-window-show-buffers-function 'helm-window-mosaic-fn helm-window-show-buffers-function 'helm-window-mosaic-fn
helm-window-prefer-horizontal-split t) helm-window-prefer-horizontal-split t)
(unless helm-ff-keep-cached-candidates ; Helm cache tends to run out-of-sync to frequently when set to 'all.
;; For removing hook from `post-command-hook' since (helm-ff-cache-mode-remove-hooks) ; Just setting `helm-ff-keep-cached-candidates' to nil does not seem to remove the hook. Upstream bug?
;; `helm-ff-keep-cached-candidates' does not seem to do it. (setq helm-ff-keep-cached-candidates nil)
;; Upstream bug?
(helm-ff-cache-mode-remove-hooks))
(defun ambrevar/helm-split-window-combined-fn (window) (defun ambrevar/helm-split-window-combined-fn (window)
"Helm window splitting that combined most standard features. "Helm window splitting that combined most standard features.