corrected 'split_centre_vertical' argument

pull/11409/head
Stephen Broadley 4 months ago
parent 2fed0f87e6
commit 786148a1e1

@ -95,8 +95,6 @@ impl EditorView {
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 @@ impl EditorView {
}
}
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.

Loading…
Cancel
Save