Skip to content
Myr

[vim] Set maxwidth and maxheight when creating a popup

Before adoption: this commit came in with the history the project adopted, so no landing records it.

For me, this fixes invalid popup size problem on Windows GVim

authored by Junegunn Choi · committed by Junegunn Choi · parent f08f4fd · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:plugin/fzf.vim+2 added
910 unmodified lines
911 let s:popup_create = {buf -> popup_create(buf, #{912 \ line: a:opts.row,913 \ col: a:opts.col,914 \ minwidth: a:opts.width,915 \ maxwidth: a:opts.width,916 \ minheight: a:opts.height,917 \ maxheight: a:opts.height,918 \ zindex: 1000,919 \ })}920 autocmd TerminalOpen * ++once call s:popup_create(str2nr(expand('<abuf>')))921 endfunction
56 unmodified lines