Skip to content

Commit

Permalink
editor cursor paiting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhou121 committed Jun 6, 2024
1 parent e647fa4 commit e5d2ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/editor/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ pub fn cursor_caret(
}
} else {
LineRegion {
x: x0 - 1.0,
x: (x0 - 1.0).max(0.0),
width: 2.0,
rvline,
}
Expand Down

0 comments on commit e5d2ded

Please sign in to comment.