corrected 'split_centre_vertical' argument

This commit is contained in:
Stephen Broadley 2024-08-04 22:02:45 +01:00
parent 2fed0f87e6
commit 786148a1e1

View File

@ -95,8 +95,6 @@ pub fn render_view(
if config.nullspace.enable {
if inner.width < view.area.width {
let (null_l, _, null_r) = area.clip_bottom(1).split_centre_vertical(inner.width);
let null_style = theme
.try_get("ui.nullspace")
.or_else(|| Some(theme.get("ui.linenr")))
@ -112,6 +110,9 @@ fn fill_area(s: &mut Surface, r: Rect, c: char) {
}
}
let view_width = inner.width + view.gutter_offset(doc);
let (null_l, _, null_r) = area.clip_bottom(1).split_centre_vertical(view_width);
// We currently on use the first char in the 'pattern'
// but in future I would like to use the whole string
// to render nicer patterns.