Merge pull request #2961 from tylerware/fix/tmux-targets-not-shell-quoted
tmux: Quoting shell arg in listing windows / panes
This commit is contained in:
commit
f78cc7ed38
1 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ but do not execute them."
|
||||||
(if-let* ((lines
|
(if-let* ((lines
|
||||||
(+tmux (format "list-windows %s -F '#{window_id};#{session_id};#{window_active};#{window_name};#{window_activity_flag}'"
|
(+tmux (format "list-windows %s -F '#{window_id};#{session_id};#{window_active};#{window_name};#{window_activity_flag}'"
|
||||||
(if session
|
(if session
|
||||||
(concat "-t " (car session))
|
(concat "-t " (shell-quote-argument (car session)))
|
||||||
"-a")))))
|
"-a")))))
|
||||||
(cl-loop for line in (split-string lines "\n" t)
|
(cl-loop for line in (split-string lines "\n" t)
|
||||||
collect (let ((window (split-string line ";")))
|
collect (let ((window (split-string line ";")))
|
||||||
|
@ -122,7 +122,7 @@ but do not execute them."
|
||||||
(if sess-or-win
|
(if sess-or-win
|
||||||
(concat (if (string-prefix-p "$" (car sess-or-win)) "-s ")
|
(concat (if (string-prefix-p "$" (car sess-or-win)) "-s ")
|
||||||
"-t "
|
"-t "
|
||||||
(car sess-or-win))
|
(shell-quote-argument (car sess-or-win)))
|
||||||
"-a")))))
|
"-a")))))
|
||||||
(cl-loop for line in (split-string lines "\n" t)
|
(cl-loop for line in (split-string lines "\n" t)
|
||||||
collect (let ((pane (split-string line ";")))
|
collect (let ((pane (split-string line ";")))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue