summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2017-10-03 11:17:42 +0200
committerThomas Graf <tgraf@suug.ch>2018-01-03 10:35:29 +0100
commited8528cf9c83f937e1441933b8736b0f42a53664 (patch)
treebcfab04be81c566b6dd5232d6186e19beac3f5b9
parent737c642819d0af392872d0ca607f075d62c0ed70 (diff)
curses: Fix seperator lines
when section above or below is collapsed
-rw-r--r--src/out_curses.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/out_curses.c b/src/out_curses.c
index c7bcf17..51b6391 100644
--- a/src/out_curses.c
+++ b/src/out_curses.c
@@ -981,8 +981,10 @@ draw:
*/
NEXT_ROW();
hline(ACS_HLINE, cols);
- mvaddch(row, LIST_COL_1, ACS_BTEE);
- mvaddch(row, LIST_COL_2, ACS_BTEE);
+ if (c_show_list) {
+ mvaddch(row, LIST_COL_1, ACS_BTEE);
+ mvaddch(row, LIST_COL_2, ACS_BTEE);
+ }
if (!c_show_graph)
center_text(" Press %c to enable graphical statistics ",
@@ -1024,6 +1026,12 @@ draw:
NEXT_ROW();
hline(ACS_HLINE, cols);
+ if (c_show_details) {
+ int i;
+ for (i = 1; i < detail_cols; i++)
+ mvaddch(row, (i * DETAILS_COLS) - 1, ACS_BTEE);
+ }
+
if (!c_show_info)
center_text(" Press %c to enable additional information ",
KEY_TOGGLE_INFO);