Skip to content

Commit b409314

Browse files
committed
Escape a semicolon at the end of input.
Avoid tmux treating it as a separator.
1 parent 3f93015 commit b409314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/vimux.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ class TmuxSession
322322
end
323323

324324
def _escape_command(command)
325-
command.gsub('"', '\"').gsub('$', '\$')
325+
command.gsub('"', '\"').gsub('$', '\$').sub(/;\z/, '\;')
326326
end
327327

328328
def _run(command)

0 commit comments

Comments
 (0)