Skip to content

Commit

Permalink
fix: lapce#391 [Editor] cursor always blinks even when not in focus
Browse files Browse the repository at this point in the history
  • Loading branch information
KhodyrevDS committed Jan 19, 2025
1 parent 45dcfde commit bb28b34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/views/editor/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ impl EditorView {

pub fn paint_text(
cx: &mut PaintCx,
view_id: &ViewId,
ed: &Editor,
viewport: Rect,
is_active: bool,
Expand Down Expand Up @@ -900,6 +901,7 @@ impl View for EditorView {
let screen_lines = ed.screen_lines.get_untracked();
EditorView::paint_text(
cx,
&self.id(),
&ed,
viewport,
self.is_active.get_untracked(),
Expand Down

0 comments on commit bb28b34

Please sign in to comment.