summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-10-31 22:27:58 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-10-31 22:27:58 +0900
commitc144c95cdab7dbf8a2c2430c007493813b1cad19 (patch)
tree6b05097fddda24a0c15d49841356524cafc6df10
parentf08f4fd87dffbe34f8b11de01829c6d63d24a15e (diff)
[vim] Set maxwidth and maxheight when creating a popup
For me, this fixes invalid popup size problem on Windows GVim
-rw-r--r--plugin/fzf.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 9f78e634..14d02764 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -912,7 +912,9 @@ else
\ line: a:opts.row,
\ col: a:opts.col,
\ minwidth: a:opts.width,
+ \ maxwidth: a:opts.width,
\ minheight: a:opts.height,
+ \ maxheight: a:opts.height,
\ zindex: 1000,
\ })}
autocmd TerminalOpen * ++once call s:popup_create(str2nr(expand('<abuf>')))