diff options
| author | Teddy Wing | 2016-08-06 04:51:52 -0400 | 
|---|---|---|
| committer | Teddy Wing | 2016-08-06 04:51:52 -0400 | 
| commit | 31bb6424e38e35e76dea4d4921dbdff4009abca7 (patch) | |
| tree | 98724ebffce36f4776dad13b576487111ae22f05 | |
| parent | f4b7600f28e5d056569424aaa83e05127e1a0816 (diff) | |
| download | Passextract-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.
| -rw-r--r-- | src/main.rs | 7 | 
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);                          }, | 
