properly escape shell variable strings like ${var} in shell scripts

flake-conversion
Trolli Schmittlauch 2022-05-17 18:34:57 +02:00
parent fa9e6e81e1
commit c9741787ef
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ in
COMPLETION_WAITING_DOTS="true"
### Fix slowness of pastes with zsh-syntax-highlighting.zsh
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`?
}