Skip to content

Commit 6a36c04

Browse files
committed
Ensure cursor is made visible when chat fails
1 parent 847ea8c commit 6a36c04

File tree

1 file changed

+7
-1
lines changed
  • crates/q_cli/src/cli/chat

1 file changed

+7
-1
lines changed

crates/q_cli/src/cli/chat/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,13 @@ pub async fn chat(initial_input: Option<String>) -> Result<ExitCode> {
117117
.await;
118118

119119
if is_interactive {
120-
queue!(output, style::SetAttribute(Attribute::Reset), style::ResetColor).ok();
120+
queue!(
121+
output,
122+
style::SetAttribute(Attribute::Reset),
123+
style::ResetColor,
124+
cursor::Show
125+
)
126+
.ok();
121127
}
122128
output.flush().ok();
123129

0 commit comments

Comments
 (0)