aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/with_spec.lua
diff options
context:
space:
mode:
authorFamiu Haque <famiuhaque@proton.me>2024-12-07 06:53:58 +0600
committerFamiu Haque <famiuhaque@proton.me>2024-12-26 19:51:13 +0600
commit98763ce4e93752f22d379e3f735f4c78ae49afad (patch)
tree57e79fced537b64f99e075b5fb62c931b20b0f1d /test/functional/lua/with_spec.lua
parent487c48ec8689b865bad04fdb87b61f5ada25da97 (diff)
downloadrneovim-98763ce4e93752f22d379e3f735f4c78ae49afad.tar.gz
rneovim-98763ce4e93752f22d379e3f735f4c78ae49afad.tar.bz2
rneovim-98763ce4e93752f22d379e3f735f4c78ae49afad.zip
refactor(autocmd): allow specifying window for autocmd context
Problem: Currently we can only specify a buffer to use for an autocmd context through `aucmd_prepbuf()`, which finds a window that uses that buffer in the current tabpage, or creates an autocmd window. This means it's not possible to actually specify a window to use for an autocmd. Solution: Add an `aucmd_prepbuf_win()` function which also takes a window as a parameter and uses it for the autocmd. If the window is not provided, then it behaves similarly to `aucmd_prepbuf()`
Diffstat (limited to 'test/functional/lua/with_spec.lua')
0 files changed, 0 insertions, 0 deletions