1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-27 13:44:32 +03:00
kakoune/test/compose/no-hook-on-unset-option-with-same-parent/rc

6 lines
209 B
Plaintext
Raw Normal View History

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