Solved file index in explorer files at start of termscp, in case the first entry is an hidden file

This commit is contained in:
ChristianVisintin
2021-01-19 09:13:08 +01:00
parent ec801f1555
commit 0c9ed38eb7
2 changed files with 4 additions and 0 deletions

View File

@@ -303,6 +303,8 @@ impl Activity for FileTransferActivity {
// Get files at current wd
self.local_scan(pwd.as_path());
self.local.wrkdir = pwd;
// Index at first valid
self.local.index_at_first();
// Configure text editor
self.setup_text_editor();
}

View File

@@ -108,6 +108,8 @@ impl FileTransferActivity {
// Get current entries
if let Ok(pwd) = self.client.pwd() {
self.remote_scan(pwd.as_path());
// Set index at first valid
self.remote.index_at_first();
// Set wrkdir
self.remote.wrkdir = pwd;
}