diff options
| author | lilydjwg <lilydjwg@gmail.com> | 2026-01-24 17:44:20 +0800 |
|---|---|---|
| committer | lilydjwg <lilydjwg@gmail.com> | 2026-01-24 18:13:29 +0800 |
| commit | a062002780f3f175e1a7ebb5fb35c972b8c8d5d7 (patch) | |
| tree | 88b61bbea8cab75da70407d723e0fc49e0e92078 /crates | |
| parent | feat: add more vim movement bindings for navigation (#3041) (diff) | |
| download | atuin-a062002780f3f175e1a7ebb5fb35c972b8c8d5d7.zip | |
fix(ui): don't draw a leading space for command
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/atuin/src/command/client/search/history_list.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/atuin/src/command/client/search/history_list.rs b/crates/atuin/src/command/client/search/history_list.rs index b1bf8176..f5f0ef55 100644 --- a/crates/atuin/src/command/client/search/history_list.rs +++ b/crates/atuin/src/command/client/search/history_list.rs @@ -302,7 +302,9 @@ impl DrawState<'_> { let mut pos = 0; for section in h.command.escape_control().split_ascii_whitespace() { - self.draw(" ", style.into()); + if pos != 0 { + self.draw(" ", style.into()); + } for ch in section.chars() { if self.x > self.list_area.width { // Avoid attempting to draw a command section beyond the width |
