Fix view mode body height without footer gap
This commit is contained in:
parent
d22a40e987
commit
a163cc9a2d
1 changed files with 1 additions and 1 deletions
|
|
@ -1273,7 +1273,7 @@ func (m *Model) layoutWidths() (int, int, int) {
|
|||
|
||||
func (m *Model) bodyHeight() int {
|
||||
height := m.height
|
||||
if m.cfg.UI.ShowFooter {
|
||||
if m.cfg.UI.ShowFooter && !m.viewMode {
|
||||
height--
|
||||
}
|
||||
return max(height, 8)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue