diff options
Diffstat (limited to 'src/commands/flat.rs')
-rw-r--r-- | src/commands/flat.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/flat.rs b/src/commands/flat.rs index 94f0959..fc698d3 100644 --- a/src/commands/flat.rs +++ b/src/commands/flat.rs @@ -59,7 +59,7 @@ pub fn flatten(context: &mut AppContext, depth: usize) -> JoshutoResult { .curr_tab_ref() .curr_list_ref() .map(|lst| lst.get_index()) - .unwrap_or(None); + .unwrap_or_default(); let viewport_index: usize = context .tab_context_ref() .curr_tab_ref() |