summaryrefslogtreecommitdiff
path: root/helix-tui/src/widgets
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-07-19 02:28:29 +0000
committerBlaž Hrastnik2021-07-19 02:29:51 +0000
commit5292fe0f7df9f1a420744007aa9dd67e7a5a6610 (patch)
tree1a7c6d7268a623163eb74e81079ae8d7fa92c20c /helix-tui/src/widgets
parentbf43fabf65fe4062f582e59fe21e92a0b0f48cb8 (diff)
Calculate completion popup sizing
Fixes #220
Diffstat (limited to 'helix-tui/src/widgets')
-rw-r--r--helix-tui/src/widgets/table.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-tui/src/widgets/table.rs b/helix-tui/src/widgets/table.rs
index 1ee4286a..d7caa0b0 100644
--- a/helix-tui/src/widgets/table.rs
+++ b/helix-tui/src/widgets/table.rs
@@ -36,7 +36,7 @@ use std::collections::HashMap;
/// capabilities of [`Text`].
#[derive(Debug, Clone, PartialEq, Default)]
pub struct Cell<'a> {
- content: Text<'a>,
+ pub content: Text<'a>,
style: Style,
}
@@ -81,7 +81,7 @@ where
/// By default, a row has a height of 1 but you can change this using [`Row::height`].
#[derive(Debug, Clone, PartialEq, Default)]
pub struct Row<'a> {
- cells: Vec<Cell<'a>>,
+ pub cells: Vec<Cell<'a>>,
height: u16,
style: Style,
bottom_margin: u16,