From 36844bc134bd9d91accdc7bc003b179a9c491522 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 24 Dec 2021 11:53:53 -0500 Subject: refactor(wpcarro/emacs): Remove unnecessary buffer fn in vterm-mgt The call to `buffer-find-or-create` is unnecessary. Change-Id: Ieb959c35123186a29da1b7f0955ceb96c9e6dab3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4564 Reviewed-by: wpcarro Autosubmit: wpcarro Tested-by: BuildkiteCI --- users/wpcarro/emacs/.emacs.d/wpc/vterm-mgt.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/users/wpcarro/emacs/.emacs.d/wpc/vterm-mgt.el b/users/wpcarro/emacs/.emacs.d/wpc/vterm-mgt.el index bef07bd809e9..ec9a04d1c846 100644 --- a/users/wpcarro/emacs/.emacs.d/wpc/vterm-mgt.el +++ b/users/wpcarro/emacs/.emacs.d/wpc/vterm-mgt.el @@ -133,11 +133,10 @@ If for whatever reason, the state of `vterm-mgt--instances' is corrupted and (interactive) (vterm-mgt-reconcile-state) (switch-to-buffer - (buffer-find-or-create - (completing-read "Switch to vterm: " - (->> vterm-mgt--instances - cycle-to-list - (-map #'buffer-name)))))) + (completing-read "Switch to vterm: " + (->> vterm-mgt--instances + cycle-to-list + (-map #'buffer-name))))) (provide 'vterm-mgt) ;;; vterm-mgt.el ends here -- cgit 1.4.1