m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-13 13:53:47 -05:00

Fix preview window size calculation

This commit is contained in:
Junegunn Choi
2020-10-06 19:37:33 +09:00
parent bafb99d520
commit 1d8bd11b67
3 changed files with 20 additions and 23 deletions

View File

@@ -1030,14 +1030,6 @@ func parsePreviewWindow(opts *previewOpts, input string) {
}
}
}
if !opts.size.percent && opts.size.size > 0 {
// Adjust size for border
opts.size.size += 2
// And padding
if opts.position == posLeft || opts.position == posRight {
opts.size.size += 2
}
}
}
func parseMargin(margin string) [4]sizeSpec {