mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-09 16:00:35 +00:00
no need for string, line already string slice
This commit is contained in:
parent
41e41cd10b
commit
68c5f52e94
@ -89,9 +89,7 @@ impl<'a> View<'a> {
|
|||||||
let clean = line.trim_end_matches(|c: char| c.is_whitespace());
|
let clean = line.trim_end_matches(|c: char| c.is_whitespace());
|
||||||
|
|
||||||
if !clean.is_empty() {
|
if !clean.is_empty() {
|
||||||
let text = line.to_string();
|
print!("{goto}{text}", goto = cursor::Goto(1, index as u16 + 1), text = line);
|
||||||
|
|
||||||
print!("{goto}{text}", goto = cursor::Goto(1, index as u16 + 1), text = &text);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user