mirror of
https://github.com/junegunn/fzf.git
synced 2026-08-14 03:41:07 +08:00
Clarify comment on height overestimation
This commit is contained in:
+3
-3
@@ -3696,9 +3696,9 @@ func (opts *Options) noSeparatorLine() bool {
|
|||||||
if opts.Inputless {
|
if opts.Inputless {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
// NOTE: This can overestimate by one line when the default separator is
|
// NOTE: This does not know that the default separator can be suppressed at
|
||||||
// suppressed at runtime (see Terminal.separatorLength), making the height
|
// runtime (see Terminal.separatorLength), so the minimum heights derived
|
||||||
// lower bounds derived from it one line more generous than necessary.
|
// from it can be one line taller than strictly necessary.
|
||||||
sep := opts.Separator == nil && !opts.InputBorderShape.Visible() || opts.Separator != nil && len(*opts.Separator) > 0
|
sep := opts.Separator == nil && !opts.InputBorderShape.Visible() || opts.Separator != nil && len(*opts.Separator) > 0
|
||||||
return noSeparatorLine(opts.InfoStyle, sep)
|
return noSeparatorLine(opts.InfoStyle, sep)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user