mirror of
https://github.com/helix-editor/helix.git
synced 2024-10-26 11:13:20 +03:00
corrected 'split_centre_vertical' argument
This commit is contained in:
parent
2fed0f87e6
commit
786148a1e1
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user