Set cursor position based on prompt

pull/460/head
Arijit Basu 2 years ago
parent bfd403c894
commit dfb4854f01
No known key found for this signature in database
GPG Key ID: 0F8EF5258DC38077

@ -814,10 +814,17 @@ fn draw_input_buffer<B: Backend>(
.map(|b| b.contains(&Border::Left))
.unwrap_or(false)
{
3
1
} else {
2
};
0
} + app
.config
.general
.prompt
.format
.as_ref()
.map(|t| t.chars().count() as u16)
.unwrap_or(0);
let cursor_offset_right = if config
.borders

Loading…
Cancel
Save