pa =
pb =
private_inner: pb =
la =
lb =
local_inner: lb = func
After replace private to local all tested widgets begin works on zsh 5.1.1 (Ubuntu 16.04). On older systems (zsh 5.0.2 on Ubuntu 14.04, zsh 4.3.10 on Debian 6) startup errors leaved, but widgets don't inserted results.
On zsh <= 5.0.2 was:
selector-insert:3: unknown file attribute
Fixed by extract variable definition to separate line.
Now all tested widgets except fzf-git-checkout (see #14) works for zsh 5.0.2 and most widgets works for 4.3.10.
Tested widgets:
private
vars scoped current function.local
vars scoped current function and inner functions.Demo:
Output:
After replace
private
tolocal
all tested widgets begin works on zsh 5.1.1 (Ubuntu 16.04). On older systems (zsh 5.0.2 on Ubuntu 14.04, zsh 4.3.10 on Debian 6) startup errors leaved, but widgets don't inserted results.On zsh <= 5.0.2 was:
Fixed by extract variable definition to separate line.
Now all tested widgets except
fzf-git-checkout
(see #14) works for zsh 5.0.2 and most widgets works for 4.3.10.