Remove the blank row above the TUI status bar
This commit is contained in:
parent
5d311bbef4
commit
4bf001e7cd
1 changed files with 5 additions and 5 deletions
10
irc9.c
10
irc9.c
|
|
@ -2245,8 +2245,8 @@ static void layout(void)
|
|||
treew = cols >= 60 ? TREEW : (cols >= 30 ? 16 : 8);
|
||||
if (copy_view) treew = 0;
|
||||
else if (treew > cols / 2) treew = cols / 2;
|
||||
chat_top = lines >= 8 ? 2 : 1;
|
||||
mainh = lines > 5 ? lines - 4 - chat_top : lines == 5;
|
||||
chat_top = lines >= 7 ? 2 : 1;
|
||||
mainh = lines >= 5 ? lines - 3 - chat_top : 0;
|
||||
}
|
||||
|
||||
static void terminal_move(int row, int col)
|
||||
|
|
@ -2423,8 +2423,8 @@ static int irc_to_ansi_color(int color)
|
|||
|
||||
static void draw_tree(void)
|
||||
{
|
||||
int bottom = lines - 4;
|
||||
if (treew < 2 || bottom < 2) return;
|
||||
int bottom = lines - 3;
|
||||
if (treew < 2 || lines < 6) return;
|
||||
terminal_accent();
|
||||
terminal_move(1, 0);
|
||||
putchar('/');
|
||||
|
|
@ -2700,7 +2700,7 @@ static void redraw(void)
|
|||
draw_tree();
|
||||
if (chat_top > 1) draw_pane_divider(1);
|
||||
draw_main();
|
||||
if (lines >= 4) draw_pane_divider(lines - (lines > 5 ? 4 : 3));
|
||||
if (lines >= 4) draw_pane_divider(lines - 3);
|
||||
draw_status();
|
||||
draw_input();
|
||||
fputs("\033[?25h", stdout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue