fix not existing lines drawing
This commit is contained in:
parent
fbe8eed3e4
commit
856a870d8b
11
src/main.cc
11
src/main.cc
|
@ -124,6 +124,12 @@ void draw_window(Window& window)
|
||||||
if (position.line >= max_y)
|
if (position.line >= max_y)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set_attribute(A_UNDERLINE, 0);
|
||||||
|
set_attribute(A_REVERSE, 0);
|
||||||
|
set_attribute(A_BLINK, 0);
|
||||||
|
set_attribute(A_BOLD, 0);
|
||||||
|
set_color(Color::Blue, Color::Black);
|
||||||
while (++position.line < max_y)
|
while (++position.line < max_y)
|
||||||
{
|
{
|
||||||
move(position.line, 0);
|
move(position.line, 0);
|
||||||
|
@ -131,12 +137,7 @@ void draw_window(Window& window)
|
||||||
addch('~');
|
addch('~');
|
||||||
}
|
}
|
||||||
|
|
||||||
set_attribute(A_UNDERLINE, 0);
|
|
||||||
set_attribute(A_REVERSE, 0);
|
|
||||||
set_attribute(A_BLINK, 0);
|
|
||||||
set_attribute(A_BOLD, 0);
|
|
||||||
set_color(Color::Cyan, Color::Black);
|
set_color(Color::Cyan, Color::Black);
|
||||||
|
|
||||||
std::string status_line = window.status_line();
|
std::string status_line = window.status_line();
|
||||||
move(max_y, max_x - status_line.length());
|
move(max_y, max_x - status_line.length());
|
||||||
clrtoeol();
|
clrtoeol();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user