Commit graph

3 commits

Author SHA1 Message Date
Folke Lemaitre
19ff343a16
style: format 2025-10-20 15:29:47 +02:00
starbased
2aacf55082
fix(terminal): set buffer when opening terminal with position='current' (#2162)
## Description

When opening a terminal with position='current', the terminal buffer
wasn't being set in the current window, causing the original buffer
content to remain visible with terminal styling applied.

This fix adds a call to vim.api.nvim_win_set_buf() to properly set the
terminal buffer when using position='current'. Also updates type
annotations to include the 'current' position option and adds tests to
prevent regression.

Credit to the solution to by @Baricus in issue #2148.

## Related Issue(s)

Fixes #2148

Co-authored-by: Baricus <31926270+Baricus@users.noreply.github.com>
2025-10-20 15:22:02 +02:00
Folke Lemaitre
2ccb70fd3a
fix(terminal): properly deal with args in vim.o.shell. Fixes #69 2024-11-13 10:42:04 +01:00