568a977d2076b4210a9a925c53abcf0a831e4003
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Diff
1diff --git a/plugins/safe-paste/safe-paste.plugin.zsh b/plugins/safe-paste/safe-paste.plugin.zsh
2index db524538cc4279e17fbc216d1ccee1348ce85623..d443ae8a29b8736b80754903962872a668e17e78 100644
3--- a/plugins/safe-paste/safe-paste.plugin.zsh
4+++ b/plugins/safe-paste/safe-paste.plugin.zsh
5@@ -84,7 +84,7 @@ _bracketed_paste_enqueue() {
6 _bracketed_paste_zle_init() {
7 _bracketed_paste_content=''
8 # Tell terminal to send escape codes around pastes
9- if [ $TERM =~ '^(rxvt-unicode|xterm(-256color)?|screen(-256color)?)$' ]; then
10+ if [[ $TERM =~ '^(rxvt-unicode|xterm(-256color)?|screen(-256color)?)$' ]]; then
11 printf '\e[?2004h'
12 fi
13 }
14@@ -93,7 +93,7 @@ _bracketed_paste_zle_init() {
15 _bracketed_paste_zle_finish() {
16 # Turn off bracketed paste when we leave ZLE, so pasting in other programs
17 # doesn't get the ^[[200~ codes around the pasted text
18- if [ $TERM =~ '^(rxvt-unicode|xterm(-256color)?|screen(-256color)?)$' ]; then
19+ if [[ $TERM =~ '^(rxvt-unicode|xterm(-256color)?|screen(-256color)?)$' ]]; then
20 printf '\e[?2004l'
21 fi
22 }