summaryrefslogtreecommitdiffstats
path: root/src/tab.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-06-04 16:55:36 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-06-04 16:59:39 -0400
commit97a1b5a9ad52f1d706b02ab6c7cd019da9a124b9 (patch)
tree2f407ff91aaa6595626e1904430fb0ba44f6d630 /src/tab.rs
parentfd4bd6f79ec8051c91f69543fc20d5e8d6607f13 (diff)
change pub fields to private and rename structs to io
Diffstat (limited to 'src/tab.rs')
-rw-r--r--src/tab.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tab.rs b/src/tab.rs
index 105a800..dd84ebc 100644
--- a/src/tab.rs
+++ b/src/tab.rs
@@ -1,9 +1,9 @@
use std::path::PathBuf;
use crate::history::{DirectoryHistory, JoshutoHistory};
+use crate::io::JoshutoDirList;
use crate::preview;
use crate::sort;
-use crate::structs::JoshutoDirList;
use crate::ui;
use crate::window::{JoshutoPanel, JoshutoView};
use crate::JoshutoConfig;
@@ -100,7 +100,7 @@ impl JoshutoTab {
ncurses::waddstr(win.win, "/");
ncurses::wattroff(win.win, ncurses::COLOR_PAIR(THEME_T.directory.colorpair));
if let Some(entry) = self.curr_list.get_curr_ref() {
- ncurses::waddstr(win.win, &entry.file_name);
+ ncurses::waddstr(win.win, &entry.file_name());
}
ncurses::wattroff(win.win, ncurses::A_BOLD());
win.queue_for_refresh();