Skip to content

winbar disappears when changing the buffer in a window #23165

@puremourning

Description

@puremourning

Problem

When setting a window-local winbar, this option is lost when changing the currently displayed buffer.

Steps to reproduce

  • nvim -Nu NONE
  • :e a
  • :setlocal winbar=foo
  • :e b

Then

  • :bu a

Expected behavior

Winbar foo is displayed in the window when both a and b buffers are displayed.

Actual behaviour:

winbaar is removed when switching to b
winbaar is returned when switching back to a

I.e. the option seems to be buffer-local not window-local, or setlocal is setting it in the buffer not the window.

From the help:

'winbar' 'wbr'          string (default empty)
                        global or local to window global-local

Neovim version (nvim -v)

NVIM v0.10.0-dev-111+g9e5f9c25d

Vim (not Nvim) behaves the same?

Vim behaves as expected when using nnoremenu WinBar.foo

Operating system/version

macOS

Terminal name/version

iTerm2

$TERM environment variable

xterm-256color

Installation

build from source, brew

Metadata

Metadata

Assignees

Labels

optionsconfiguration, settingsstatuslinetabline, winbar, statuscolumn

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions