Skip to content

Commit dae744e

Browse files
fcouryrekurt
andcommitted
fix(tui): remove command prompt underline
Stop applying the cursor-line underline style to the command prompt so entered commands render as plain text inside the prompt. Co-authored-by: nikita42 <13642481+rekurt@users.noreply.github.com>
1 parent fcfeb76 commit dae744e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

crates/tsql/src/ui/editor.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub struct CommandPrompt {
5151
impl CommandPrompt {
5252
pub fn new() -> Self {
5353
let mut textarea = TextArea::new(vec![String::new()]);
54-
textarea.set_cursor_line_style(Style::default().add_modifier(Modifier::UNDERLINED));
54+
textarea.set_cursor_line_style(Style::default());
5555

5656
Self {
5757
active: false,
@@ -62,8 +62,7 @@ impl CommandPrompt {
6262
pub fn open(&mut self) {
6363
self.active = true;
6464
self.textarea = TextArea::new(vec![String::new()]);
65-
self.textarea
66-
.set_cursor_line_style(Style::default().add_modifier(Modifier::UNDERLINED));
65+
self.textarea.set_cursor_line_style(Style::default());
6766
}
6867

6968
pub fn close(&mut self) {

0 commit comments

Comments
 (0)