Skip to content

Commit

Permalink
fix: missing characters in preview (#1803)
Browse files Browse the repository at this point in the history
  • Loading branch information
tessus committed Mar 1, 2024
1 parent f449282 commit 897af9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions atuin/src/command/client/search/interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,11 @@ impl State {
let input = self.build_input(style);
f.render_widget(input, input_chunk);

let preview_width = if compact {
preview_width
} else {
preview_width - 2
};
let preview =
self.build_preview(results, compact, preview_width, preview_chunk.width.into());
f.render_widget(preview, preview_chunk);
Expand Down

0 comments on commit 897af9a

Please sign in to comment.