diff options
author | Blaž Hrastnik | 2021-06-04 06:07:43 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-04 06:11:55 +0000 |
commit | f2e554d761a8e5f2f7b3cbc5590ff6e5699b13d9 (patch) | |
tree | 45cfa688102d575a89ff5707dcf8165ad992df72 /helix-term/src | |
parent | bd4552cd2bcecc2d0591e505c378df9b6cd83cbe (diff) |
matchbrackets: Needs to render with the viewport offset
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/ui/editor.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index e5d9f679..f474cb36 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -320,7 +320,10 @@ impl EditorView { if (pos.col as u16) < viewport.width { let style = Style::default().add_modifier(Modifier::REVERSED); surface - .get_mut(pos.col as u16 + OFFSET, pos.row as u16) + .get_mut( + viewport.x + pos.col as u16, + viewport.y + pos.row as u16, + ) .set_style(style); } } |