From 5388a538efd9eee71a8c0258e7f874c387bdc32c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 28 Jan 2016 19:30:49 +0000 Subject: [PATCH] Avoid interpretting eventual output in send-text implementations --- rc/tmux-repl.kak | 2 +- rc/x11-repl.kak | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/tmux-repl.kak b/rc/tmux-repl.kak index f9a1163a..3c28af23 100644 --- a/rc/tmux-repl.kak +++ b/rc/tmux-repl.kak @@ -38,7 +38,7 @@ def tmux-repl-window -params 0..1 -command-completion -docstring "Create a new w } def tmux-send-text -docstring "Send selected text to the repl pane in tmux" %{ - %sh{ + nop %sh{ tmux set-buffer -b kak_selection "${kak_selection}" kak_orig_window=$(tmux display-message -p '#I') kak_orig_pane=$(tmux display-message -p '#P') diff --git a/rc/x11-repl.kak b/rc/x11-repl.kak index 3768b215..369b1a62 100644 --- a/rc/x11-repl.kak +++ b/rc/x11-repl.kak @@ -12,7 +12,7 @@ def -docstring 'create a new window for repl interaction' \ }} def x11-send-text -docstring "send selected text to the repl window" %{ - %sh{ + nop %sh{ echo "${kak_selection}" | xsel -i wid=$(xdotool getactivewindow) xdotool search --name kak_repl_window windowactivate