Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't run winrestcmd to restore windows #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
1 participant