File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 39
39
; ;
40
40
; ;; Code:
41
41
; ;
42
- ; ; FIXME: Error during redisplay: (eval (winum-get-number-string)) signaled
43
- ; ; (wrong-type-argument numberp nil) when opening a helm buffer.
44
42
; ; FIXME: when `winum-scope' is changed from frame-local to non-local in
45
43
; ; customize, the mode-line is messed up until next `winum-update' .
46
44
; ; FIXME: The mode-line's window number is not always up to date in all frames.
@@ -323,7 +321,8 @@ PREFIX must be a key sequence, like the ones returned by `kbd'."
323
321
WINDOW: if specified, the window of which we want to know the number.
324
322
If not specified, the number of the currently selected window is
325
323
returned."
326
- (let ((s (int-to-string (winum-get-number window))))
324
+ (let* ((n (winum-get-number window))
325
+ (s (when (numberp n) (int-to-string n))))
327
326
(propertize s 'face 'winum-face )))
328
327
329
328
;;;### autoload
You can’t perform that action at this time.
0 commit comments