aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/popup.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-04-05 09:23:37 +0000
committerBlaž Hrastnik2021-04-05 09:23:37 +0000
commit95d0bba81ae8ed035399b2cb362d2f65481d4781 (patch)
treeaf8d35e7de2864abec5d4188bdb7a29fb2ef56c2 /helix-term/src/ui/popup.rs
parent59a0fc7b59186b3bedb01dd5b958d3b97b9fbba2 (diff)
ui: Improve completion state handling.
Diffstat (limited to 'helix-term/src/ui/popup.rs')
-rw-r--r--helix-term/src/ui/popup.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/helix-term/src/ui/popup.rs b/helix-term/src/ui/popup.rs
index f1666451..44e79c4f 100644
--- a/helix-term/src/ui/popup.rs
+++ b/helix-term/src/ui/popup.rs
@@ -46,7 +46,11 @@ impl<T: Component> Popup<T> {
}
}
- pub fn contents(&mut self) -> &mut T {
+ pub fn contents(&self) -> &T {
+ &self.contents
+ }
+
+ pub fn contents_mut(&mut self) -> &mut T {
&mut self.contents
}
}