summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-01-12 11:13:50 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-01-12 11:13:50 -0500
commit1466ac5031c43174abf1ff73e0b940fefdd8033f (patch)
tree68b50c9ea6b1744f9a6470b44252b4795e2e8330
parent8d0f371ae5f0a1a51d5b73969cc837ecfa3adce1 (diff)
fix regression horizontal line not being drawn
-rw-r--r--src/joshuto/ui.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/joshuto/ui.rs b/src/joshuto/ui.rs
index 9dfcca1..52957bb 100644
--- a/src/joshuto/ui.rs
+++ b/src/joshuto/ui.rs
@@ -58,9 +58,7 @@ pub fn end_ncurses()
pub fn display_options(win: &window::JoshutoPanel, vals: &Vec<String>)
{
ncurses::werase(win.win);
-
- let ch = '-' as ncurses::chtype;
- ncurses::mvwhline(win.win, 0, 0, ch, -1);
+ ncurses::mvwhline(win.win, 0, 0, 0, win.cols);
for (i, val) in vals.iter().enumerate() {
ncurses::wmove(win.win, (i+1) as i32, 0);