mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Fixed del_entry
This commit is contained in:
@@ -131,8 +131,10 @@ impl FileExplorer {
|
|||||||
///
|
///
|
||||||
/// Delete file at provided index
|
/// Delete file at provided index
|
||||||
pub fn del_entry(&mut self, idx: usize) {
|
pub fn del_entry(&mut self, idx: usize) {
|
||||||
|
if self.files.len() > idx {
|
||||||
self.files.remove(idx);
|
self.files.remove(idx);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
/// ### count
|
/// ### count
|
||||||
|
|||||||
Reference in New Issue
Block a user