neovim/test/functional/autocmd
glacambre abe38f7d26 window.c: do BufEnter in correct window after closing help #7431
closes #7429

Problem: after a help window was closed, a window was selected and its
autocommands triggered. After that, restore_snapshot was called and the
focused window changed, confusing the user.

Solution: Add function get_snapshot_focus() that returns the window that
holds the cursor in a snapshot. Use this function in win_close to make
sure the right window is selected before any autocommand is triggered.
2017-12-10 14:55:59 +01:00
..
autocmd_spec.lua functests: Fix linter errors 2017-04-09 03:31:13 +03:00
bufenter_spec.lua window.c: do BufEnter in correct window after closing help #7431 2017-12-10 14:55:59 +01:00
cmdline_spec.lua FIXUP: duplicate error number in #7422 2017-11-23 07:36:35 +01:00
dirchanged_spec.lua DirChanged: avoid redundant events on 'autochdir' 2017-03-12 15:45:50 +01:00
tabclose_spec.lua build: Target luacheck HEAD. 2016-11-17 00:55:39 +01:00
tabnew_spec.lua Windows: enable more tests 2017-01-13 01:17:12 +01:00
tabnewentered_spec.lua Windows: enable more tests 2017-01-13 01:17:12 +01:00
termclose_spec.lua ci: XXX: permissive termclose_spec timer (#7217) 2017-08-26 17:18:46 +02:00
textyankpost_spec.lua functests: Fix linter errors 2017-04-09 03:31:13 +03:00