aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/input.rs b/src/input.rs
index 6c113ab4..ac4078ee 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -391,7 +391,9 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
};
for _ in 0..(to_scroll.abs() as usize) {
- if self.ctx.terminal_mode().intersects(mode::TermMode::ALT_SCREEN) {
+ if self.mouse_config.faux_scrollback &&
+ self.ctx.terminal_mode().intersects(mode::TermMode::ALT_SCREEN)
+ {
// Faux scrolling
if code == 64 {
// Scroll up one line
@@ -426,7 +428,9 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
65
};
- if self.ctx.terminal_mode().intersects(mode::TermMode::ALT_SCREEN) {
+ if self.mouse_config.faux_scrollback &&
+ self.ctx.terminal_mode().intersects(mode::TermMode::ALT_SCREEN)
+ {
// Faux scrolling
if button == 64 {
// Scroll up one line