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:
parent
1b88fec7f0
commit
0fbd914432
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user