Fix completion for empty config values

If we have an empty string in the completion, that already gets completed as ''.
If we return "", we'd have '""' in the completion.

Fixes #3027
This commit is contained in:
Florian Bruhin 2017-10-01 20:14:49 +02:00
parent 1b88fec7f0
commit 0fbd914432

View File

@ -44,7 +44,7 @@ def value(optname, *_values, info):
model = completionmodel.CompletionModel(column_widths=(30, 70, 0)) model = completionmodel.CompletionModel(column_widths=(30, 70, 0))
try: try:
current = info.config.get_str(optname) or '""' current = info.config.get_str(optname)
except configexc.NoOptionError: except configexc.NoOptionError:
return None return None