Skip to content

Title not restored after exiting from nvim opened with stdin #21404

@3N4N

Description

@3N4N

Neovim version (nvim -v)

v0.9.0-dev-506+g090048bec9f8

Vim (not Nvim) behaves the same?

no, vim 9.0.815

Operating system/version

Windows 11 22H2

Terminal name/version

Windows Terminal, Conhost

$TERM environment variable

nil, xterm-256color

Installation

Built from source

How to reproduce the issue

$ set TERM='xterm-256color' # without setting $TERM, ':h title' doesn't take effect in either cmd or powershell
$ echo foo | nvim --clean --cmd 'set title' -
:q

Expected behavior

The terminal title should be restored to what it was before opening neovim.

Actual behavior

The terminal title remains what it was set to by neovim.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions