Merge branch 'blyxxyz-scroll'

This commit is contained in:
Florian Bruhin 2016-06-30 12:27:53 +02:00
commit 3c43639cf1
4 changed files with 12 additions and 2 deletions

View File

@ -22,6 +22,12 @@ Added
- New `{host}` replacement for tab- and window titles which evaluates to the current host. - New `{host}` replacement for tab- and window titles which evaluates to the current host.
Changed
~~~~~~~
- `:scroll-perc` now prefers a count over the argument given to it, which means
`gg` can be used with a count.
v0.7.0 v0.7.0
------ ------

View File

@ -185,6 +185,7 @@ Contributors, sorted by the number of commits in descending order:
* Nick Ginther * Nick Ginther
* Michael Ilsaas * Michael Ilsaas
* Martin Zimmermann * Martin Zimmermann
* Jan Verbeek
* Fritz Reichwald * Fritz Reichwald
* Brian Jackson * Brian Jackson
* sbinix * sbinix
@ -204,7 +205,6 @@ Contributors, sorted by the number of commits in descending order:
* Regina Hug * Regina Hug
* Mathias Fussenegger * Mathias Fussenegger
* Marcelo Santos * Marcelo Santos
* Jan Verbeek
* Fritz V155 Reichwald * Fritz V155 Reichwald
* Franz Fellner * Franz Fellner
* zwarag * zwarag

View File

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

View File

@ -190,6 +190,10 @@ Feature: Scrolling
And I run :scroll-perc 20 And I run :scroll-perc 20
Then no crash should happen 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 ## :scroll-page
Scenario: Scrolling down with :scroll-page Scenario: Scrolling down with :scroll-page