This commit is contained in:
Conrad Ludgate 2023-04-11 09:33:51 +01:00
parent e12ae58c07
commit 21511cf527
No known key found for this signature in database
GPG Key ID: 197E3CACA1C980B5
2 changed files with 5 additions and 3 deletions

View File

@ -172,7 +172,9 @@ impl DrawState<'_> {
let selected = self.y as usize + self.state.offset == self.state.selected;
let with_select = move |style: Style| {
if selected {
style.bg(theme.selection).add_modifier(Modifier::BOLD)
style
.add_modifier(Modifier::BOLD)
.add_modifier(Modifier::UNDERLINED)
} else {
style
}

View File

@ -64,7 +64,7 @@ impl State {
fn highlight_results(&mut self, results: &[History]) -> bool {
let start = Instant::now();
for h in results {
if start.elapsed() > Duration::from_millis(10) {
if start.elapsed() > Duration::from_millis(5) {
return true;
}
self.results_parsed
@ -582,7 +582,7 @@ pub async fn history(
// if we didn't get around to highlighting all the results, we should consider
// triggering a re-draw sooner.
let wait = if highlight_interrupted {
Duration::from_millis(10)
Duration::from_millis(5)
} else {
Duration::from_millis(250)
};