Update tmux-repl.kak

This commit is contained in:
Hao Deng 2018-05-31 09:35:28 -04:00 committed by GitHub
parent 9e0fb5da5f
commit aeddf067d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,8 +50,8 @@ define-command tmux-repl-window -params 0..1 -command-completion -docstring "Cre
tmux-repl-impl 'new-window' %arg{@}
}
define-command -hidden tmux-send-text -params 0..1 -docstring "Send the selected text to the repl pane if no parameter.
Otherwise send parameter with new line" %{
define-command -hidden tmux-send-text -params 0..1 -docstring "tmux-send-text [text]: Send text(append new line) to the REPL pane.
If no text is passed, then the selection is used" %{
nop %sh{
if [ $# -eq 0 ]; then
tmux set-buffer -b kak_selection "${kak_selection}"