diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-05-30 22:15:35 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-05-30 22:15:35 -0400 |
commit | 70c8251b479e745edeb080058c1b95bf677684e1 (patch) | |
tree | a654e33e23fa6aa17ca8977807753209c312b39e /src/window | |
parent | 5980d762dba38b003dbe54506cdd58ee85f97c8c (diff) |
move reloading of directory content into reload_dir.rs rather than tab.rs
Diffstat (limited to 'src/window')
-rw-r--r-- | src/window/page_state.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window/page_state.rs b/src/window/page_state.rs index cf4756e..f288a7c 100644 --- a/src/window/page_state.rs +++ b/src/window/page_state.rs @@ -16,7 +16,7 @@ impl JoshutoPageState { vec_len: usize, offset: usize, ) { - if self.end != win_rows as usize + self.start { + if self.end != self.start + win_rows as usize { self.end = self.start + win_rows as usize; } if self.end > vec_len { |