Handle dashes at the beginning of commands

This commit is contained in:
Eric Freese
2017-02-18 16:51:53 -07:00
parent 48a21bf79e
commit c9a51e0c4c
4 changed files with 8 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ class TerminalSession
end
def send_string(str)
tmux_command("send-keys -t 0 -l '#{str.gsub("'", "\\'")}'")
tmux_command("send-keys -t 0 -l -- '#{str.gsub("'", "\\'")}'")
self
end