diff options
author | Blaž Hrastnik | 2021-08-19 03:52:07 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-08-19 03:52:07 +0000 |
commit | 9776553ad057c12ccee8c0d54d419b159977f34e (patch) | |
tree | 05823129fb443d368cc7d9a09b81f4180545df0d /helix-term/src/ui/completion.rs | |
parent | 115754c5ee5e105ca5b1943abe9b2a1b2299c2bc (diff) |
Refactor view.first_line/first_col into view.offset (Position)
Diffstat (limited to 'helix-term/src/ui/completion.rs')
-rw-r--r-- | helix-term/src/ui/completion.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/completion.rs b/helix-term/src/ui/completion.rs index 4e01ce1c..985d4e48 100644 --- a/helix-term/src/ui/completion.rs +++ b/helix-term/src/ui/completion.rs @@ -261,7 +261,7 @@ impl Component for Completion { .primary() .cursor(doc.text().slice(..)); let cursor_pos = (helix_core::coords_at_pos(doc.text().slice(..), cursor_pos).row - - view.first_line) as u16; + - view.offset.row) as u16; let mut doc = match &option.documentation { Some(lsp::Documentation::String(contents)) |