Skip to content

Commit 9241ee5

Browse files
committed
[views] handle small height when focusing on file details
1 parent e832e52 commit 9241ee5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/view_helpers.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,11 @@ layout_views()
897897

898898
vis = bottom.try_consume(filter_height + (config_panel_open ? 1 : 0)
899899
+ (filters_supported ? 1 : 0));
900+
if (!vis && lnav_data.ld_mode == ln_mode_t::FILE_DETAILS) {
901+
filter_height = 5;
902+
vis = bottom.try_consume(filter_height + (config_panel_open ? 1 : 0)
903+
+ (filters_supported ? 1 : 0));
904+
}
900905
lnav_data.ld_filter_view.set_height(vis_line_t(filter_height));
901906
lnav_data.ld_filter_view.set_y(bottom + 2);
902907
lnav_data.ld_filter_view.set_width(width);

0 commit comments

Comments
 (0)