Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect cursor shape? #172

Open
Barbaross93 opened this issue May 26, 2021 · 1 comment
Open

Incorrect cursor shape? #172

Barbaross93 opened this issue May 26, 2021 · 1 comment

Comments

@Barbaross93
Copy link

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.

@vhakulinen
Copy link
Owner

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants