Skip to content

Conversation

@gibfahn
Copy link

@gibfahn gibfahn commented Jun 17, 2024


Commits (oldest to newest)

3490bc6 Don't run winrestcmd to restore windows

If you look at :h winrestcmd it says:

winrestcmd()                                                      *winrestcmd()*
  Returns a sequence of |:resize| commands that should restore
  the current window sizes.  Only works properly when no windows
  are opened or closed and the current window and tab page is
  unchanged.
  Example: >vim
    let cmd = winrestcmd()
    call MessWithWindowSizes()
    exe cmd

We can't guarantee this, so don't try to restore windows.

Refs: neoclide/coc.nvim#4178 (comment)
Refs: vim-ctrlspace/vim-ctrlspace#306
Fixes: #74
Fixes: #83


If you look at `:h winrestcmd` it says:

```
winrestcmd()                                                      *winrestcmd()*
  Returns a sequence of |:resize| commands that should restore
  the current window sizes.  Only works properly when no windows
  are opened or closed and the current window and tab page is
  unchanged.
  Example: >vim
    let cmd = winrestcmd()
    call MessWithWindowSizes()
    exe cmd
```

We can't guarantee this, so don't try to restore windows.

Refs: neoclide/coc.nvim#4178 (comment)
Refs: vim-ctrlspace/vim-ctrlspace#306
Fixes: junegunn#74
Fixes: junegunn#83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vim-peekaboo sets cmdheight to max, meaning I can only see 1 line of my window output cmd height changed to maximum

1 participant