kutsan / zsh-system-clipboard

System clipboard key bindings for Zsh Line Editor with vi mode. It is similar to what `set clipboard=unnamed` does for vim.
GNU General Public License v3.0
149 stars 16 forks source link

Suppress WARN_CREATE_GLOBAL for plugin managers by not leaking variable $key #5

Closed kutsan closed 6 years ago

kutsan commented 6 years ago

Seems like plugin managers run plugins inside their wrapper functions. So, setopt WARN_CREATE_GLOBAL creates this warning.

zsh-system-clipboard.plugin.zsh:153: scalar parameter key created globally in function zgen-init