diff options
author | Canop <cano.petrole@gmail.com> | 2022-03-27 08:23:44 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2022-03-27 08:23:44 +0200 |
commit | 68ca143c0d8f5a8b871cafc7e283423a113f6959 (patch) | |
tree | 40a3284e25f63d3bc2801cbd4ca9d1b5eb53cbf8 /src/cli/mod.rs | |
parent | f9fe6efebf3ce4e32d93705db8decc2019f7112f (diff) |
add the (already documented) capture_mouse conf item
See https://github.com/Canop/broot/issues/238
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)?; |