Steps to reproduce
- Run
vim --clean -S test.vim, with
vim9script
set splitbelow
set nosplitscroll
setline(1, range(100))
normal! G
const ptybuf: number = term_start(&shell, {
hidden: true,
exit_cb: (_, _) => {
close
help
}
})
popup_create(ptybuf, {border: []})
- Close the shell by typing
exit in the terminal popup (or alternatively, depending on the shell, press <C-d>).
- Result: The
help window is opened and the popup is closed. But the previously focused window has been scrolled.
Expected behaviour
No scrolling when a window is split in a terminal callback function.
Version of Vim
9.0.500
Environment
Linux
Logs and stack traces
No response