Merge branch 'Kingdread-incdec-setting'

This commit is contained in:
Florian Bruhin 2015-11-25 23:06:43 +01:00
commit 9328e1703c
2 changed files with 2 additions and 6 deletions

View File

@ -451,11 +451,7 @@ class CommandDispatcher:
background: Open the link in a new background tab.
window: Open the link in a new window.
"""
segments = config.get('general', 'url-incdec-segments')
if segments is None:
segments = set()
else:
segments = set(segments)
segments = set(config.get('general', 'url-incdec-segments'))
try:
new_url = urlutils.incdec_number(url, incdec, segments=segments)
except urlutils.IncDecError as error:

View File

@ -227,7 +227,7 @@ def data(readonly=False):
"last loaded session."),
('url-incdec-segments',
SettingValue(typ.URLSegmentList(none_ok=True), 'path,query'),
SettingValue(typ.URLSegmentList(), 'path,query'),
"The URL segments where `:navigate increment/decrement` will "
"search for a number."),