Compare commits
No commits in common. "ff30bc1052e40f96a63252504c0c1aa6bea9fe24" and "0fe3906578b8f633fc9649ab020588a4674aafd7" have entirely different histories.
ff30bc1052
...
0fe3906578
2 changed files with 2 additions and 4 deletions
|
@ -127,7 +127,6 @@ pub fn list(state: &mut State) {
|
|||
let sessions = util::get_sessions().unwrap_or(Vec::new());
|
||||
|
||||
let search = state.target();
|
||||
let previous = message(MSG_PREVIOUS);
|
||||
|
||||
// handle empty case
|
||||
if sessions.len() == 0 {
|
||||
|
@ -155,7 +154,7 @@ pub fn list(state: &mut State) {
|
|||
let compare = Some(name.clone());
|
||||
let marker =
|
||||
if compare == state.title { current_symbol.clone() }
|
||||
else if state.session && compare == previous { prev_symbol.clone() }
|
||||
else if compare == message(MSG_PREVIOUS) { prev_symbol.clone() }
|
||||
else { " ".to_string() };
|
||||
|
||||
println!(
|
||||
|
|
|
@ -26,8 +26,7 @@ pub fn message(fstr: &str) -> Option<String> {
|
|||
if let Ok(output) = result {
|
||||
let text = String::from_utf8(output.0.stdout);
|
||||
if let Ok(title) = text {
|
||||
if title.len() > 0 { Some(title[0..title.len() - 1].to_owned()) }
|
||||
else { None }
|
||||
Some(title[0..title.len() - 1].to_owned())
|
||||
} else { None }
|
||||
} else { None }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue