diff options
author | rabite <rabite@posteo.de> | 2019-05-23 19:49:01 +0200 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-05-23 19:49:01 +0200 |
commit | cdaacd1ca6300a037140c01cce1d788bebf9baee (patch) | |
tree | e6268833bf817018e6401dd251ea82d011ec7f7d /src/minibuffer.rs | |
parent | 6d43ce621de7ea82eadaf2806fbab3836bdade7e (diff) |
move methods from Widget trait to WidgetCore
Diffstat (limited to 'src/minibuffer.rs')
-rw-r--r-- | src/minibuffer.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/minibuffer.rs b/src/minibuffer.rs index a8fb410..f7e0229 100644 --- a/src/minibuffer.rs +++ b/src/minibuffer.rs @@ -167,7 +167,7 @@ impl MiniBuffer { self.clear(); } - self.screen()?.cursor_hide().log(); + self.core.screen()?.cursor_hide().log(); match self.popup() { Err(HError::MiniBufferCancelledInput) => self.input_cancelled()?, @@ -335,7 +335,7 @@ impl MiniBuffer { } pub fn input_cancelled(&self) -> HResult<()> { - self.show_status("Input cancelled").log(); + self.core.show_status("Input cancelled").log(); return HError::minibuffer_cancel() } @@ -344,7 +344,7 @@ impl MiniBuffer { } pub fn input_empty(&self) -> HResult<()> { - self.show_status("Empty!").log(); + self.core.show_status("Empty!").log(); return HError::minibuffer_empty() } } @@ -502,7 +502,7 @@ impl Widget for MiniBuffer { ": ".len() + self.position; - let mut screen = self.screen()?; + let mut screen = self.core.screen()?; let ysize = screen.ysize()?; screen.goto_xy(cursor_pos, ysize).log(); |