feat: position cursor at closest glyph boundary on click when beam cursor is enabled
closes #99
This commit is contained in:
parent
18b0c217fc
commit
dd042e2fdd
3 changed files with 33 additions and 8 deletions
|
@ -1119,3 +1119,10 @@ pub fn get_cursor_shape(self: *Self) renderer.CursorShape {
|
|||
.beam => .beam,
|
||||
};
|
||||
}
|
||||
|
||||
pub fn is_cursor_beam(self: *Self) bool {
|
||||
return switch (self.get_cursor_shape()) {
|
||||
.beam, .beam_blink => true,
|
||||
else => false,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue