on master help sign in
matchbrackets: Needs to render with the viewport offset
f2e554dBlaž Hrastnik
helix-term/src/ui/editor.rs+4−1
@@ -320,7 +320,10 @@ impl EditorView {
320 if (pos.col as u16) < viewport.width {
320 if (pos.col as u16) < viewport.width {
321 let style = Style::default().add_modifier(Modifier::REVERSED);
321 let style = Style::default().add_modifier(Modifier::REVERSED);
322 surface
322 surface
323+ .get_mut(
323− .get_mut(pos.col as u16 + OFFSET, pos.row as u16)
324+ viewport.x + pos.col as u16,
325+ viewport.y + pos.row as u16,
326+ )
324 .set_style(style);
327 .set_style(style);
325 }
328 }
326 }
329 }