[vim/vim] Bug in code or unclear documentation on 'laststatus' (Issue #20875)

ubaldot (Vim Github Repository) <[email protected]> Wed, 29 Jul 2026 11:17:30 -0700
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/issues/[email protected]>
ubaldot created an issue (vim/vim#20875)

### Steps to reproduce

```vim
vim --clean
set laststatus=2
:vsplit
:split
<c-w>k
set laststatus=0
```

I am not sure if this is a bug or am I misinterpreting the documentation. 
Note that on the top-right window `:echo winnr()` returns 1. 

### Expected behaviour

The statusline of the top-right window disappear. 

### Version of Vim

MS-Windows 64-bit GUI/console version with OLE support Included patches: 1-45

### Environment

Windows 11, Windows Terminal and gvim

### Logs and stack traces

```shell

```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/issues/20875
You are receiving this because you are subscribed to this thread.

Message ID: <vim/vim/issues/[email protected]>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/20875%40github.com.