about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2021-12-24T16·53-0500
committerclbot <clbot@tvl.fyi>2021-12-24T16·59+0000
commit36844bc134bd9d91accdc7bc003b179a9c491522 (patch)
tree15aa53cc12ab0070f0e18c6c53b205e498859307
parent51594136816e52ffd27111d96463685a37b52792 (diff)
refactor(wpcarro/emacs): Remove unnecessary buffer fn in vterm-mgt r/3349
The call to `buffer-find-or-create` is unnecessary.

Change-Id: Ieb959c35123186a29da1b7f0955ceb96c9e6dab3
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4564
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
-rw-r--r--users/wpcarro/emacs/.emacs.d/wpc/vterm-mgt.el9
1 files 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