1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-09-08 16:35:49 +03:00

fix cursor line style is not applied when cursor is at end of line

Этот коммит содержится в:
rhysd
2022-07-09 12:39:55 +09:00
родитель ea377db4ee
Коммит 8ec321f9dd

Просмотреть файл

@@ -1016,7 +1016,7 @@ impl<'a> TextArea<'a> {
} }
if boundaries.is_empty() { if boundaries.is_empty() {
spans.push(Span::raw(self.replace_tabs(line))); spans.push(Span::styled(self.replace_tabs(line), style_begin));
if cursor_at_end { if cursor_at_end {
spans.push(Span::styled(" ", self.cursor_style)); spans.push(Span::styled(" ", self.cursor_style));
} }