Render cursor text with the terminal's background color
This commit is contained in:
parent
5cfd4b06b9
commit
ddd6f0806b
1 changed files with 4 additions and 11 deletions
|
@ -498,13 +498,6 @@ impl TerminalElement {
|
||||||
let cursor_point = DisplayCursor::from(cursor.point, *display_offset);
|
let cursor_point = DisplayCursor::from(cursor.point, *display_offset);
|
||||||
let cursor_text = {
|
let cursor_text = {
|
||||||
let str_trxt = cursor_char.to_string();
|
let str_trxt = cursor_char.to_string();
|
||||||
|
|
||||||
let color = if self.focused {
|
|
||||||
theme.players().local().background
|
|
||||||
} else {
|
|
||||||
theme.players().local().cursor
|
|
||||||
};
|
|
||||||
|
|
||||||
let len = str_trxt.len();
|
let len = str_trxt.len();
|
||||||
cx.text_system()
|
cx.text_system()
|
||||||
.shape_line(
|
.shape_line(
|
||||||
|
@ -513,7 +506,7 @@ impl TerminalElement {
|
||||||
&[TextRun {
|
&[TextRun {
|
||||||
len,
|
len,
|
||||||
font: text_style.font(),
|
font: text_style.font(),
|
||||||
color,
|
color: theme.colors().terminal_background,
|
||||||
background_color: None,
|
background_color: None,
|
||||||
underline: Default::default(),
|
underline: Default::default(),
|
||||||
}],
|
}],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue