properly escape shell variable strings like ${var} in shell scripts
This commit is contained in:
parent
fa9e6e81e1
commit
c9741787ef
|
@ -389,7 +389,7 @@ in
|
||||||
COMPLETION_WAITING_DOTS="true"
|
COMPLETION_WAITING_DOTS="true"
|
||||||
### Fix slowness of pastes with zsh-syntax-highlighting.zsh
|
### Fix slowness of pastes with zsh-syntax-highlighting.zsh
|
||||||
pasteinit() {
|
pasteinit() {
|
||||||
OLD_SELF_INSERT=$\{$\{(s.:.)widgets[self-insert]}[2,3]}
|
OLD_SELF_INSERT=''${''${(s.:.)widgets[self-insert]}[2,3]}
|
||||||
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`?
|
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue