diff options
author | Gokul Soumya | 2022-06-21 16:52:08 +0000 |
---|---|---|
committer | GitHub | 2022-06-21 16:52:08 +0000 |
commit | 8e8367eea6ff146c7e1097af153398832691e078 (patch) | |
tree | 02e137d840c02eb99b926c3bb6f8349902b0946a /helix-term/src/commands | |
parent | ce85b9716df5e1ea804994202687f19cd711ae1b (diff) |
Refactor Margin for fine grained control (#2727)
Diffstat (limited to 'helix-term/src/commands')
-rw-r--r-- | helix-term/src/commands/lsp.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs index b6bea8d6..3ee3c54a 100644 --- a/helix-term/src/commands/lsp.rs +++ b/helix-term/src/commands/lsp.rs @@ -287,10 +287,8 @@ pub fn code_action(cx: &mut Context) { }); picker.move_down(); // pre-select the first item - let popup = Popup::new("code-action", picker).margin(helix_view::graphics::Margin { - vertical: 1, - horizontal: 1, - }); + let popup = + Popup::new("code-action", picker).margin(helix_view::graphics::Margin::all(1)); compositor.replace_or_push("code-action", popup); }, ) |