6719b2b4aeea9c504d03dd43c812db25a0ada172 — Jakob L. Kreuze 3 years ago 6606551
Invoke '--remove-buffers before listing buffers

"nil" has been showing up recently when I hit <C-x b>, presumably
because 'buffer-name for a dead buffer returns 'nil. No big deal, we'll
just call exwm-buffer-groups--remove-buffers before giving a list of
buffers in the completing read. This *might* not be the most elegant
solution, in which case I'll hopefully come up with something better
later on.
1 files changed, 2 insertions(+), 0 deletions(-)

M exwm-buffer-groups.el
M exwm-buffer-groups.el => exwm-buffer-groups.el +2 -0
@@ 84,6 84,8 @@ workspace."
                                     (elt exwm-buffer-groups-buffers
          (current-buffer (buffer-name (other-buffer (current-buffer)))))
      ;; Clean up so that "nil" isn't showing up in the list.
      (completing-read "Switch to buffer: " buffers-in-workspace
                       nil nil nil nil current-buffer))))
  (switch-to-buffer buffer-or-name))