Skip to content

Commit 8fea058

Browse files
author
Bruno Sutic
committed
Bugfix: 'open editor' can now open files with spaces
Closes tmux-plugins#3
1 parent 59cbb35 commit 8fea058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

open.tmux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ generate_editor_command() {
5353
local editor=$(get_tmux_option "$open_editor_override" "$environment_editor")
5454
# vim freezes terminal unless there's the '--' argument. Other editors seem
5555
# to be fine with it (textmate [mate], light table [table]).
56-
echo "xargs tmux send-keys '$editor -- '; tmux send-keys 'C-m'"
56+
echo "xargs -I'{}' tmux send-keys '$editor -- \"{}\"'; tmux send-keys 'C-m'"
5757
}
5858

5959
set_copy_mode_open_bindings() {

0 commit comments

Comments
 (0)