diff options
Diffstat (limited to 'src/cli/mod.rs')
-rw-r--r-- | src/cli/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 6c72b1b..3bc64c5 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -190,12 +190,11 @@ pub fn run() -> Result<Option<Launchable>, ProgramError> { let app = App::new(&context)?; w.queue(EnterAlternateScreen)?; w.queue(cursor::Hide)?; - let capture_mouse = config.disable_mouse_capture != Some(true); - if capture_mouse { + if context.capture_mouse { w.queue(EnableMouseCapture)?; } let r = app.run(&mut w, &context, &config); - if capture_mouse { + if context.capture_mouse { w.queue(DisableMouseCapture)?; } w.queue(cursor::Show)?; |