summaryrefslogtreecommitdiff
path: root/muttator/content/mail.js
diff options
context:
space:
mode:
Diffstat (limited to 'muttator/content/mail.js')
-rw-r--r--muttator/content/mail.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/muttator/content/mail.js b/muttator/content/mail.js
index 576498b5..7f93316b 100644
--- a/muttator/content/mail.js
+++ b/muttator/content/mail.js
@@ -374,12 +374,12 @@ function Mail() //{{{
// SCROLLING
mappings.add(myModes, ["<Down>"],
"Scroll message down",
- function (count) { buffer.scrollLines(count > 1 ? count : 1); },
+ function (count) { buffer.scrollLines(Math.max(count, 1)); },
{ flags: Mappings.flags.COUNT });
mappings.add(myModes, ["<Up>"],
"Scroll message up",
- function (count) { buffer.scrollLines(-(count > 1 ? count : 1)); },
+ function (count) { buffer.scrollLines(-Math.max(count, 1)); },
{ flags: Mappings.flags.COUNT });
mappings.add([modes.MESSAGE], ["<Left>"],