diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-19 13:36:50 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-19 13:36:50 -0400 |
commit | 44252aa792dfae24a63cd727c1ff0bf032d8cf9f (patch) | |
tree | 9242f6769ef3e368c6c0f46ae7923461ed7f8fa3 /src/commands/cursor_move.rs | |
parent | 97434b87b049a8567dc65adc3756ac6f13a36940 (diff) |
remove functionality from commands/mod.rs
Diffstat (limited to 'src/commands/cursor_move.rs')
-rw-r--r-- | src/commands/cursor_move.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/commands/cursor_move.rs b/src/commands/cursor_move.rs index 5899a9b..4a3dea4 100644 --- a/src/commands/cursor_move.rs +++ b/src/commands/cursor_move.rs @@ -13,13 +13,13 @@ impl CursorMove { if let Some(curr_list) = curr_tab.curr_list.as_mut() { match curr_list.index { None => {} - Some(index) => { + Some(_) => { let dir_len = curr_list.contents.len(); -/* - if index == dir_len - 1 { - return; - } -*/ + /* + if index == dir_len - 1 { + return; + } + */ if new_index >= dir_len { new_index = dir_len - 1; } |