Skip to content

Command-line disappears after using win_execute(<winid>, 'vertical resize 20') on netrw window in another tabpage and switching back with gt #18518

@zhangjiakouzf

Description

@zhangjiakouzf

Steps to reproduce

  1. Start Vim in a clean environment:
vim --clean
  1. set laststatus and enable the netrw plugin:
:set laststatus=2
:packadd netrw
  1. Open netrw:
:Lex
Image
  1. Get the window ID of the netrw window(for example:1001):
:echo win_getid()
  1. Ceate a new tabpage:
:tabnew
  1. Resize the netrw window in the new tabpage:
:call win_execute(1001,  'vertical resize 20')
  1. Switch back to the first tabpage:
gt
  1. Observed: The command-line is not visible.
Image
  1. Close the new tabpage:
:q
  1. Observed: The command-line reappears.
Image

Expected behaviour

The command-line is always visible.

Version of Vim

VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Sep 19 2025 00:00:00)

Environment

OS:fedora 42
terminal: XTerm(397) and tmux(tmux-3.5a-4.fc42.x86_64)
$TERM:xterm-256color
shell:GNU bash, version 5.2.37(1)-release (x86_64-redhat-linux-gnu)

Logs and stack traces

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions