Skip to content

Commit a52d8a3

Browse files
authored
Fix wrapping behavior on query input (#54)
1 parent b545a07 commit a52d8a3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

cli/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
### Patch
1313

14+
- Fix wrapping behavior for input query
1415
- Fix shell command output being partially discarded on command exit
1516
- Fix deadlock with single queries creating the query session
1617

cli/src/cli/interact.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl Options {
8787
let interface = Arc::new(or_fail(linefeed::Interface::new("sec-gemini")));
8888
let style = "\0".bold().blue().to_string();
8989
let (start, clear) = style.split_once('\0').unwrap();
90-
or_fail(interface.set_prompt(&format!("{clear}> {start}")));
90+
or_fail(interface.set_prompt(&format!("\x01{clear}\x02> \x01{start}\x02")));
9191
let _ = interface.set_completer(Arc::new(cmds::Completer::new(sdk.clone())));
9292
loop {
9393
let line = try_to!(

0 commit comments

Comments
 (0)