home/test/compose/no-hook-on-unset-option-with-same-parent/rc

6 lines
209 B
Plaintext

decl str foo
hook global BufSetOption foo=.* %{ exec ifoo<esc> }
set-option buffer foo value # triggers hook
set-option global foo value # does not trigger hook
unset-option buffer foo # does not trigger hook