diff options
author | rabite <rabite@posteo.de> | 2019-02-02 17:08:29 +0100 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-02-02 17:08:29 +0100 |
commit | 1b95fb704f4a1d4674776df638a1a2158144580d (patch) | |
tree | fe5bc7eec365af0f24c8bc7bcc219717704c7374 /src/textview.rs | |
parent | 23e699234a570c031572bed029ff63b5a2eaed3a (diff) |
not quite ready yet
Diffstat (limited to 'src/textview.rs')
-rw-r--r-- | src/textview.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/textview.rs b/src/textview.rs index f292e66..f09f368 100644 --- a/src/textview.rs +++ b/src/textview.rs @@ -17,8 +17,8 @@ impl TextView { pub fn new_from_file(file: &File) -> TextView { let file = std::fs::File::open(&file.path).unwrap(); let file = std::io::BufReader::new(file); - let lines = file.lines().take(100).map(|line| line.unwrap()).collect(); - + let lines = file.lines().map(|line| line.unwrap()).collect(); + TextView { lines: lines, buffer: String::new(), |