Merge branch 'scroll' of https://github.com/blyxxyz/qutebrowser into blyxxyz-scroll

This commit is contained in:
Florian Bruhin 2016-06-30 12:18:15 +02:00
commit 99d921f169
2 changed files with 5 additions and 1 deletions

View File

@ -600,7 +600,7 @@ class CommandDispatcher:
if perc is None and count is None:
perc = 100
elif perc is None:
elif count is not None:
perc = count
orientation = Qt.Horizontal if horizontal else Qt.Vertical

View File

@ -190,6 +190,10 @@ Feature: Scrolling
And I run :scroll-perc 20
Then no crash should happen
Scenario: :scroll-perc with count and argument
When I run :scroll-perc 0 with count 50
Then the page should be scrolled vertically
## :scroll-page
Scenario: Scrolling down with :scroll-page