mirror of
https://github.com/tstack/lnav.git
synced 2024-08-17 08:50:41 +03:00
[mouse] do not enable mouse unless using the alt screen
This commit is contained in:
parent
8aa84ad143
commit
d8ee0fa58d
@ -694,10 +694,12 @@ public:
|
||||
if (view_colors::initialized) {
|
||||
vc.init_roles(iter->second, reporter);
|
||||
|
||||
auto& mouse_i = injector::get<xterm_mouse&>();
|
||||
mouse_i.set_enabled(check_experimental("mouse")
|
||||
|| lnav_config.lc_mouse_mode
|
||||
== lnav_mouse_mode::enabled);
|
||||
if (stdscr) {
|
||||
auto& mouse_i = injector::get<xterm_mouse&>();
|
||||
mouse_i.set_enabled(check_experimental("mouse")
|
||||
|| lnav_config.lc_mouse_mode
|
||||
== lnav_mouse_mode::enabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -1355,5 +1357,10 @@ screen_curses::create()
|
||||
|
||||
newterm(nullptr, stdout, stdin);
|
||||
|
||||
auto& mouse_i = injector::get<xterm_mouse&>();
|
||||
mouse_i.set_enabled(check_experimental("mouse")
|
||||
|| lnav_config.lc_mouse_mode
|
||||
== lnav_mouse_mode::enabled);
|
||||
|
||||
return Ok(screen_curses{stdscr});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user