diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2017-10-03 11:17:42 +0200 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2018-01-03 10:35:29 +0100 |
commit | ed8528cf9c83f937e1441933b8736b0f42a53664 (patch) | |
tree | bcfab04be81c566b6dd5232d6186e19beac3f5b9 | |
parent | 737c642819d0af392872d0ca607f075d62c0ed70 (diff) |
curses: Fix seperator lines
when section above or below is collapsed
-rw-r--r-- | src/out_curses.c | 12 |
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); |