Fix an issue with escape characters (#7979)

Co-authored-by: Francisco de Zuviría <FranciscodeZuviria@fusap.com.ar>
This commit is contained in:
Chai FengandFrancisco de Zuviría authored and GitHub committed 2020-02-27 22:47:06 +01:00
1 parent 2c0315dba4
commit 368198b761
1 file changed
+2 -2
+2 -2
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