From 34538845ba899a6892c6bbc10d294f209b78fdd7 Mon Sep 17 00:00:00 2001 From: Jeff Zhao Date: Mon, 21 Jun 2021 19:44:17 -0400 Subject: fix file sizes not appearing when filename too long (#78) * fix file sizes not appearing when filename too long * refactor previewing code - event.rs is moved out of utils as its an integral part of the codebase - load_child.rs has been replaced with preview module - moved previewing logic inside run.rs instead of spreading it across multiple commands * revert tui_dirlist_detailed to use MIN_LEFT_LABEL_WIDTH - add previewing loading trigger to mouse input as well * fix: right label disappears (#79) Co-authored-by: DLFW --- src/commands/reload.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/commands/reload.rs') diff --git a/src/commands/reload.rs b/src/commands/reload.rs index 1c149ce..de33a4f 100644 --- a/src/commands/reload.rs +++ b/src/commands/reload.rs @@ -1,6 +1,5 @@ use crate::context::AppContext; use crate::error::JoshutoResult; -use crate::util::load_child::LoadChild; pub fn soft_reload(index: usize, context: &mut AppContext) -> std::io::Result<()> { let options = context.config_ref().display_options_ref().clone(); @@ -42,6 +41,5 @@ pub fn reload(context: &mut AppContext, index: usize) -> std::io::Result<()> { pub fn reload_dirlist(context: &mut AppContext) -> JoshutoResult<()> { reload(context, context.tab_context_ref().index)?; - LoadChild::load_child(context)?; Ok(()) } -- cgit v1.2.3