diff options
author | Omnikar | 2021-11-05 02:25:08 +0000 |
---|---|---|
committer | GitHub | 2021-11-05 02:25:08 +0000 |
commit | cfc82858679d264d178a0b072da26828e685de12 (patch) | |
tree | 214e1e538effee89d28c3b948c290555d19e0d82 /helix-term/src | |
parent | 51b4d35dce92fa7bf85780cb2ba0e531db378448 (diff) |
Allow infoboxes to be disabled (#972)
* Allow infoboxes to be disabled
* Document `infoboxes` default value
* Rename `infoboxes` to `auto_info`
* Document `auto-info`
* Fix incomplete rename
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/ui/editor.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 0ffde47b..a7015577 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -1086,8 +1086,10 @@ impl Component for EditorView { ); } - if let Some(ref mut info) = self.autoinfo { - info.render(area, surface, cx); + if cx.editor.config.auto_info { + if let Some(ref mut info) = self.autoinfo { + info.render(area, surface, cx); + } } let key_width = 15u16; // for showing pending keys |