Handle OverflowError when scrolling

This commit is contained in:
Florian Bruhin 2016-07-05 11:14:04 +02:00
parent 00b287117a
commit 3c71337698

View File

@ -626,7 +626,12 @@ class CommandDispatcher:
self.navigate(top_navigate)
return
tab.scroll.delta_page(count * x, count * y)
try:
tab.scroll.delta_page(count * x, count * y)
except OverflowError:
raise cmdexc.CommandError(
"Numeric argument is too large for internal int "
"representation.")
@cmdutils.register(instance='command-dispatcher', scope='window')
def yank(self, title=False, sel=False, domain=False, pretty=False):