diff options
author | Chai Feng <chaifeng@chaifeng.com> | 2020-02-28 05:47:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 22:47:06 +0100 |
commit | 368198b7616eb69b396de86d9ec4ff0f35bd72f0 (patch) | |
tree | 2dec1efed644ab9bd9b73ef235f9e103df49045e | |
parent | 2c0315dba4297ec2e87d6f503a6d907c33f51958 (diff) | |
download | zsh-368198b7616eb69b396de86d9ec4ff0f35bd72f0.tar.gz zsh-368198b7616eb69b396de86d9ec4ff0f35bd72f0.tar.bz2 zsh-368198b7616eb69b396de86d9ec4ff0f35bd72f0.zip |
Fix an issue with escape characters (#7979)
Co-authored-by: Francisco de ZuvirÃa <FranciscodeZuviria@fusap.com.ar>
-rw-r--r-- | plugins/copybuffer/copybuffer.plugin.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/copybuffer/copybuffer.plugin.zsh b/plugins/copybuffer/copybuffer.plugin.zsh index cc205d40f..483ed5a5f 100644 --- a/plugins/copybuffer/copybuffer.plugin.zsh +++ b/plugins/copybuffer/copybuffer.plugin.zsh @@ -1,9 +1,9 @@ # copy the active line from the command line buffer -# onto the system clipboard (requires clipcopy plugin) +# onto the system clipboard copybuffer () { if which clipcopy &>/dev/null; then - echo $BUFFER | clipcopy + printf "%s" "$BUFFER" | clipcopy else echo "clipcopy function not found. Please make sure you have Oh My Zsh installed correctly." fi |