evily fix xclip not working with @fingers-copy-command

This commit is contained in:
Jorge Morante 2016-05-24 22:57:31 +02:00
parent f375dd8307
commit c267108eb1
1 changed files with 12 additions and 12 deletions

View File

@ -35,18 +35,18 @@ function handle_exit() {
function copy_result() {
local result=$1
if [ -z $FINGERS_COPY_COMMAND ]; then
clear
echo -n "$result"
start_copy_mode
top_of_buffer
start_of_line
start_selection
end_of_line
cursor_left
copy_selection
else
echo -n "$result" | $FINGERS_COPY_COMMAND
clear
echo -n "$result"
start_copy_mode
top_of_buffer
start_of_line
start_selection
end_of_line
cursor_left
copy_selection
if [ ! -z "$FINGERS_COPY_COMMAND" ]; then
echo -n "$result" | eval "nohup $FINGERS_COPY_COMMAND" > /dev/null
fi
}