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

cmd height changed to maximum #74

Open
jackielii opened this issue Jul 19, 2020 · 4 comments
Open

cmd height changed to maximum #74

jackielii opened this issue Jul 19, 2020 · 4 comments

Comments

@jackielii
Copy link

jackielii commented Jul 19, 2020

I can't figure out which plugin caused the issue, with minimum config it's ok, but with plugins enabled it shows the error.

I think the plugins related are peekaboo, vim-surround, vim-airline.

steps to reproduce:

  1. record a micro like so: qqf=ysiw"j0q
    qq record macro q
    f= move to =
    ysiw" add around a word "
    j0q move to next line and to the beginning and end macro
  2. keep applying @q
  3. when there is a blank line, the error shows

screenshot before pressing @q:
image

screenshot after bug
image

at this point I had to resize the windows vertically to get it back,

set verbosefile=filename.txt
set verbose=9

relevant part of the log:

Executing BufEnter Autocommands for "*"
autocommand if g:repeat_tick == 0|let g:repeat_tick = b:changedtick|endif

Error detected while processing function peekaboo#aboo[76]..<SNR>140_close:
line    1:
E939: Positive count required: bd 0
airline: group: airline_error already done, skipping
airline: group: airline_error_bold already done, skipping
airline: group: airline_error_red already done, skipping
airline: group: airline_c1_to_airline_x already done, skipping
airline: group: airline_c1_to_airline_x_bold already done, skipping
Gee19 added a commit to Gee19/dotfiles that referenced this issue Mar 2, 2021
@junegunn
Copy link
Owner

junegunn commented Apr 4, 2021

I can't reproduce the problem with my setup. Can you provide a minimal set of plugins and settings that can be used to reproduce the problem?

bmwill added a commit to bmwill/dotfiles that referenced this issue Feb 21, 2022
Remove vim-peekaboo plugin due to junegunn/vim-peekaboo#74
@gibfahn
Copy link

gibfahn commented Sep 11, 2022

Seeing what I think is the same issue, filed it over at neoclide/coc.nvim#4178

Gee19 added a commit to Gee19/vim-peekaboo that referenced this issue Nov 8, 2022
- Fixes infamous cmdline resize bug (junegunn#74 & junegunn#83)
@Gee19
Copy link

Gee19 commented Nov 8, 2022

Closing floats before calling winrestcmd seems to fix this

Gee19@4882bb4

@crispyrooster
Copy link

crispyrooster commented Mar 21, 2023

anyone know how to close the lspconfig hover buf? having same issue with it causing peekaboo resizing cmdheight.

edit : I commented out the following line (from /autoload/peekaboo.vim ) and now regardless of hover buf state, when I enter peekaboo from normal mode with " or @, or insert mode with ctrl-r, the peekaboo window closes without issue and all panes are the correct size.

anyone aware of a case that fails?

execute s:winrestcmd

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

No branches or pull requests

5 participants