on master help sign in
matchbrackets: Needs to render with the viewport offset
commitf2e554d761a8e5f2f7b3cbc5590ff6e5699b13d9 authorBlaž Hrastnik <blaz@mxxn.io> dateFri 4 Jun 2021, 15:07 (5 years ago) parentbd4552c
1 file changed+4−1
helix-term/src/ui/editor.rs+4−1
helix-term/src/ui/editor.rs+4−1
@@ -320,7 +320,10 @@ impl EditorView {
320320 if (pos.col as u16) < viewport.width {
321321 let style = Style::default().add_modifier(Modifier::REVERSED);
322322 surface
323− .get_mut(pos.col as u16 + OFFSET, pos.row as u16)
323+ .get_mut(
324+ viewport.x + pos.col as u16,
325+ viewport.y + pos.row as u16,
326+ )
324327 .set_style(style);
325328 }
326329 }