mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
fix: sudo panic
This commit is contained in:
parent
d7b57f204c
commit
60ba16a97c
1 changed files with 3 additions and 0 deletions
|
|
@ -11,6 +11,9 @@ use crate::shell::{add_candidates_no_dup, module_output, shell_evaluated_command
|
||||||
use crate::style::highlight_difference;
|
use crate::style::highlight_difference;
|
||||||
|
|
||||||
pub fn suggest_candidates(data: &mut Data) {
|
pub fn suggest_candidates(data: &mut Data) {
|
||||||
|
if data.split.is_empty() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let executable = &data.split[0]
|
let executable = &data.split[0]
|
||||||
.rsplit(std::path::MAIN_SEPARATOR)
|
.rsplit(std::path::MAIN_SEPARATOR)
|
||||||
.next()
|
.next()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue