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

@ -109,7 +109,7 @@ fn render_mini_mode(plane: *Plane, theme: *const Widget.Theme) void {
const pos: c_int = @intCast(cursor);
if (tui_.config.enable_terminal_cursor) {
const y, const x = plane.rel_yx_to_abs(0, pos + 1);
tui_.rdr.cursor_enable(y, x, .default) catch {};
tui_.rdr.cursor_enable(y, x, tui_.get_cursor_shape()) catch {};
} else {
plane.cursor_move_yx(0, pos + 1) catch return;
var cell = plane.cell_init();