aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTeddy Wing2016-08-06 04:51:52 -0400
committerTeddy Wing2016-08-06 04:51:52 -0400
commit31bb6424e38e35e76dea4d4921dbdff4009abca7 (patch)
tree98724ebffce36f4776dad13b576487111ae22f05 /src
parentf4b7600f28e5d056569424aaa83e05127e1a0816 (diff)
downloadPassextract-31bb6424e38e35e76dea4d4921dbdff4009abca7.tar.bz2
Remote the "test" line
Delete this line from the TUI display and adjust the real output lines to be one line higher.
Diffstat (limited to 'src')
-rw-r--r--src/main.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index f0cb840..863fc65 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -52,10 +52,9 @@ fn main() {
term.printline(0, 0, "Passextract (Press q or Ctrl-C to quit)");
term.printline_with_cell(selection.x, selection.y, "->", knockout_cell);
- term.printline(5, 2, "test");
for (i, s) in options.iter().enumerate() {
- term.printline(5, i + 3, s)
+ term.printline(5, i + 2, s)
}
let evt = term.get_event(Duration::from_millis(100)).unwrap();
@@ -65,7 +64,7 @@ fn main() {
break;
}
'j' => {
- if selection.y < options.len() + 2 {
+ if selection.y < options.len() + 1 {
term.printline(selection.x, selection.y, " ");
selection.y = selection.y + 1;
@@ -83,7 +82,7 @@ fn main() {
}
}
'\x0D' => {
- match clipboard_ctx.set_contents(strip_key(&options[selection.y - 3]).to_owned()) {
+ match clipboard_ctx.set_contents(strip_key(&options[selection.y - 2]).to_owned()) {
Ok(_) => {
term.printline_with_cell(selection.x, selection.y, "->", green_cell);
},