vhakulinen/gnvim

Incorrect cursor shape?

Barbaross93 opened this issue · 1 comments

In both the latest git and release versions of GNvim, I've noticed that the cursor shape always remained as a ibeam. In my init.vim, it should be a horizontal bar. When I try to apply the setting, I can see that the cursor thickness changes if I try something like set guicursor=a:hor10 or set guicursor=a:hor20 but the shape itself does not change.

Note to self: the cursor currently doesn't consider the shape. See

let mode: ModeInfo = value.get().expect("mode-info must be an ModeInfo object");
let cell_percentage = mode
.cell_percentage
// Make sure we have non 0 value.
.map(|v| if v == 0 { 100 } else { v })
.map(|v| v as f32 / 100.0)
.unwrap_or(100.0);
self.width_percentage.replace(cell_percentage);
self.attr_id.replace(mode.attr_id.unwrap_or(0) as i64);
self.set_blink(
obj,
Blink::new(
mode.blinkwait.unwrap_or(0) as f64 * 1000.0,
mode.blinkon.unwrap_or(0) as f64 * 1000.0,
mode.blinkoff.unwrap_or(0) as f64 * 1000.0,
self.blink_transition.get(),
obj.frame_clock()
.map(|click| click.frame_time() as f64)
.unwrap_or(0.0),
),
);
self.node.replace(None);