diff options
author | Artur Malabarba <artur@endlessparentheses.com> | 2018-12-06 18:34:11 -0200 |
---|---|---|
committer | Artur Malabarba <artur@endlessparentheses.com> | 2018-12-06 18:34:11 -0200 |
commit | 4b335260edcdd8dcee0811d7048bb08274e941f1 (patch) | |
tree | b0b8ed7afc94cab5992c6e3c0604548a7da4e39b /spinner.el | |
parent | 0637791f005f747532b4439439a81c3415961377 (diff) |
Fix #1 - Don't assume mode-line-process is a list
Diffstat (limited to 'spinner.el')
-rw-r--r-- | spinner.el | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -301,7 +301,8 @@ this time, in which case it won't display at all." (setq spinner-current (make-spinner type-or-object (current-buffer) fps delay))) (setq type-or-object spinner-current) ;; Maybe add to mode-line. - (unless (memq 'spinner--mode-line-construct mode-line-process) + (unless (and (listp mode-line-process) + (memq 'spinner--mode-line-construct mode-line-process)) (setq mode-line-process (list (or mode-line-process "") 'spinner--mode-line-construct)))) |