From 95d0bba81ae8ed035399b2cb362d2f65481d4781 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 5 Apr 2021 18:23:37 +0900 Subject: ui: Improve completion state handling. --- helix-term/src/ui/popup.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'helix-term/src/ui/popup.rs') 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 Popup { } } - 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 } } -- cgit v1.2.3-70-g09d2