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:
deb0ch 2017-04-18 15:31:35 +02:00
parent 66c598a4e6
commit 8e886302c7

View file

@ -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))