feat: allow cursor shape configuration for mini and overlay modes

This commit is contained in:
CJ van den Berg 2024-12-20 13:59:08 +01:00
parent d2671259f4
commit ca784d1712
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 6 additions and 9 deletions

View file

@ -877,11 +877,7 @@ pub const Editor = struct {
} else {
if (self.screen_cursor(cursor)) |pos| {
const y, const x = self.plane.rel_yx_to_abs(@intCast(pos.row), @intCast(pos.col));
const shape = if (tui_.input_mode) |mode|
mode.cursor_shape
else
.block;
tui_.rdr.cursor_enable(y, x, tui.translate_cursor_shape(shape)) catch {};
tui_.rdr.cursor_enable(y, x, tui_.get_cursor_shape()) catch {};
} else {
tui_.rdr.cursor_disable();
}