start on 1

pull/6/head
dvkt 5 years ago
parent fe78fa6018
commit 4eafd3fbc4

@ -1,3 +1,5 @@
#![allow(unused_must_use)]
extern crate termion;
use std::collections::HashMap;
@ -173,7 +175,7 @@ impl App {
impl Page {
fn cursor_up(&mut self) {
if self.link > 0 {
if self.link > 1 {
self.link -= 1;
}
}
@ -269,6 +271,9 @@ impl Page {
}
}
}
if self.links.len() > 0 {
self.link = 1;
}
}
fn draw(&self) -> String {

Loading…
Cancel
Save