bugfix: use getter to access window-vector
related with #4 and #5: there is a crash from time to time when frame-local and winum-assign-func reserves numbers.
This commit is contained in:
parent
66c598a4e6
commit
8e886302c7
2
winum.el
2
winum.el
|
@ -421,7 +421,7 @@ Returns the assigned number, or nil on error."
|
|||
(if (aref (winum--get-window-vector) number)
|
||||
(progn
|
||||
(message "Number %s already assigned to %s, can't assign to %s"
|
||||
number (aref winum--window-vector number) window)
|
||||
number (aref (winum--get-window-vector) number) window)
|
||||
nil)
|
||||
(setf (aref (winum--get-window-vector) number) window)
|
||||
(puthash window number (winum--get-numbers-table))
|
||||
|
|
Loading…
Reference in a new issue