Skip to content

Commit

Permalink
Remove stripping new line, because it removes newline thoughout the t…
Browse files Browse the repository at this point in the history
…ext, not only trailing ones
  • Loading branch information
samoshkin committed Nov 29, 2017
1 parent 64e01e6 commit 867f377
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tmux/yank.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ is_app_installed() {
}

# get data either form stdin or from file
# 'echo -n' to strip any trailing new lines, so when we paste in command prompt
# it won't be executed immediately
buf=$(cat "$@" | xargs echo -n)
buf=$(cat "$@")

copy_backend_remote_tunnel_port=$(tmux show-option -gvq "@copy_backend_remote_tunnel_port")
copy_use_osc52_fallback=$(tmux show-option -gvq "@copy_use_osc52_fallback")
Expand Down

0 comments on commit 867f377

Please sign in to comment.