mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-22 00:03:49 +01:00
fast
This commit is contained in:
parent
e12ae58c07
commit
21511cf527
@ -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
|
||||
}
|
||||
|
@ -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)
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user