Fix an issue with escape characters (#7979)

Co-authored-by: Francisco de Zuviría <FranciscodeZuviria@fusap.com.ar>
This commit is contained in:
Chai Feng 2020-02-28 05:47:06 +08:00 committed by GitHub
parent 2c0315dba4
commit 368198b761
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,9 @@
# copy the active line from the command line buffer # copy the active line from the command line buffer
# onto the system clipboard (requires clipcopy plugin) # onto the system clipboard
copybuffer () { copybuffer () {
if which clipcopy &>/dev/null; then if which clipcopy &>/dev/null; then
echo $BUFFER | clipcopy printf "%s" "$BUFFER" | clipcopy
else else
echo "clipcopy function not found. Please make sure you have Oh My Zsh installed correctly." echo "clipcopy function not found. Please make sure you have Oh My Zsh installed correctly."
fi fi