diff options
author | Canop <cano.petrole@gmail.com> | 2021-04-30 19:10:50 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-04-30 19:10:50 +0200 |
commit | 99b7fb72f15b11d49e0ead4f7b12eda59ea78f1b (patch) | |
tree | 226077af3a74bed119793132515794579bf2cdad /src/icon | |
parent | 0025ac27cc25c43d2bf2c086ced09a5dca5cfde1 (diff) |
fix shifted match highlighting on regex patterns when showing icons
Fix #376
Diffstat (limited to 'src/icon')
-rw-r--r-- | src/icon/icon_plugin.rs | 6 | ||||
-rw-r--r-- | src/icon/vscode.rs | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/icon/icon_plugin.rs b/src/icon/icon_plugin.rs index 371e9aa..7f10950 100644 --- a/src/icon/icon_plugin.rs +++ b/src/icon/icon_plugin.rs @@ -6,12 +6,6 @@ pub trait IconPlugin { fn get_icon( &self, tree_line_type: &TreeLineType, - - // Use case: - // For files- use libmagic to get file type - // For directories: get list of files to get dir type - // Recommended to avoid for performance reasons. - full_path: &std::path::PathBuf, name: &str, double_ext: Option<&str>, ext: Option<&str>, diff --git a/src/icon/vscode.rs b/src/icon/vscode.rs index 1d8afe8..5466228 100644 --- a/src/icon/vscode.rs +++ b/src/icon/vscode.rs @@ -127,7 +127,6 @@ impl IconPlugin for VSCodeIconPlugin { fn get_icon( &self, tree_line_type: &TreeLineType, - _full_path: &std::path::PathBuf, name: &str, double_ext: Option<&str>, ext: Option<&str>, |