Skip to content

fix(terminal): inconsistent mode change when switching buffer#37228

Merged
github-actions[bot] merged 1 commit intorelease-0.11from
backport-37215-to-release-0.11
Jan 4, 2026
Merged

fix(terminal): inconsistent mode change when switching buffer#37228
github-actions[bot] merged 1 commit intorelease-0.11from
backport-37215-to-release-0.11

Conversation

@neovim-backports
Copy link

Description

Backport of #37215 to release-0.11.

Problem:  When switching to another terminal buffer in Terminal mode,
          usually Nvim stays in Terminal mode, but leaves Terminal mode
          if the old terminal buffer was deleted.
Solution: Don't always leave Terminal mode when active terminal buffer
          is deleted. Instead let terminal_check_focus() decide that.
(cherry picked from commit 3621af9)
@github-actions github-actions bot enabled auto-merge (rebase) January 4, 2026 03:35
@github-actions github-actions bot added terminal built-in :terminal or :shell, PTY target:release labels Jan 4, 2026
@github-actions github-actions bot merged commit bb31e7b into release-0.11 Jan 4, 2026
31 checks passed
@github-actions github-actions bot deleted the backport-37215-to-release-0.11 branch January 4, 2026 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

target:release terminal built-in :terminal or :shell, PTY

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant