diff options
| author | glepnir <glephunter@gmail.com> | 2026-07-13 00:30:40 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-12 12:30:40 -0400 |
| commit | 58b6310adc938f49ea85e6ab4839616f8af28ecd (patch) | |
| tree | 6c7e8a029d35eebe2ab440e2ac4094de4c05de48 /test/functional/vimscript/executable_spec.lua | |
| parent | 17f13ab338f92fa5086ca769f10bd87fc9503f41 (diff) | |
| download | rneovim-58b6310adc938f49ea85e6ab4839616f8af28ecd.tar.gz rneovim-58b6310adc938f49ea85e6ab4839616f8af28ecd.tar.bz2 rneovim-58b6310adc938f49ea85e6ab4839616f8af28ecd.zip | |
fix(startup): respect enter for windows created in startup scripts #37287
Problem: When a split window is created from the init script using nvim_open_win()
with enter=false, the current window focus is not preserved. The cursor
incorrectly moves into the newly created split during startup.
Solution: Save curwin before the iteration loop in create_windows(), and
restore it after the loop. also update edit_buffers() to use curwin instead
of firstwin.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions