From d7f9c1b7aff4b461b9766cab80661568d20d5928 Mon Sep 17 00:00:00 2001 From: Wolfhard Prell Date: Sat, 15 Jan 2022 17:56:39 +0100 Subject: [PATCH] fix(tmux): +tmux/rerun fails due to malformed +tmux-last-command --- modules/tools/tmux/autoload/tmux.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tools/tmux/autoload/tmux.el b/modules/tools/tmux/autoload/tmux.el index 8af509c61..8c57ffb77 100644 --- a/modules/tools/tmux/autoload/tmux.el +++ b/modules/tools/tmux/autoload/tmux.el @@ -28,7 +28,7 @@ (unwind-protect (if (= 0 (setq code (quiet! (shell-command cmdstr output errors)))) (with-current-buffer output - (setq +tmux-last-command `(,cmdstr ,@args)) + (setq +tmux-last-command `(,(substring cmdstr (+ 1 (length bin))) ,@args)) (buffer-string)) (error "[%d] tmux $ %s (%s)" code @@ -61,7 +61,7 @@ but do not execute them." ;;;###autoload (defun +tmux/rerun () "Rerun the last command executed by `+tmux' and `+tmux/run'." - (interactive "P") + (interactive) (unless +tmux-last-command (user-error "No last command to run")) (apply #'+tmux +tmux-last-command))