Skip to content
Myr

Export FZF_PREVIEW_HEIGHT instead of FZF_HEIGHT

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

https://github.com/junegunn/fzf.vim/issues/361

authored by Junegunn Choi · committed by Junegunn Choi · parent 33f32de · Browse files · 2 files+1 added−1 removed
This commit

State

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

Trailers

  • https: //github.com/junegunn/fzf.vim/issues/361

Diff stats

2 files+1 added−1 removed

  • other:+1 added−1 removed

2 files+1 added−1 removed

modified:plugin/fzf.vim-1 removed
378 unmodified lines
379 let use_term = 0380 endif381 if use_height382 let height = s:calc_size(&lines, dict.down, dict)383 let $FZF_HEIGHT = height383 let optstr .= ' --height='.height384 elseif use_term385 let optstr .= ' --no-height'386 endif
373 unmodified lines
modified:src/terminal.go+1 added
578 unmodified lines
579 if !t.preview.wrap && t.tui.DoesAutoWrap() {580 pwidth += 1581 }582 t.pwindow = t.tui.NewWindow(y+1, x+2, pwidth, h-2, tui.BorderNone)583 os.Setenv("FZF_PREVIEW_HEIGHT", strconv.Itoa(h-2))584 }585 switch t.preview.position {586 case posUp:587 pheight := calculateSize(height, t.preview.size, minHeight, 3)
1234 unmodified lines