mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
app/irc: fix +irc/ivy-jump-to-channel
not it works when buffer-names are indented below server
This commit is contained in:
@ -62,7 +62,14 @@ argument) is non-nil only show channels in current server."
|
||||
(cl-loop for buf in (circe-server-chat-buffers)
|
||||
unless (eq buf current-buffer)
|
||||
collect (format " %s" (buffer-name buf)))))
|
||||
:action #'ivy--switch-buffer-action
|
||||
:action #'+irc--ivy-switch-to-buffer-action
|
||||
:preselect (buffer-name (current-buffer))
|
||||
:keymap ivy-switch-buffer-map
|
||||
:caller '+irc/ivy-jump-to-channel)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +irc--ivy-switch-to-buffer-action (buffer)
|
||||
(when (stringp buffer)
|
||||
(if (get-buffer buffer)
|
||||
(ivy--switch-buffer-action buffer)
|
||||
(ivy--switch-buffer-action (s-trim-left buffer)))))
|
||||
|
Reference in New Issue
Block a user