Disallow empty values in url-incdec-segments

This commit is contained in:
Daniel Schadt 2015-11-25 19:34:02 +01:00
parent 951c2e8eb6
commit d082c248a8
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."),