Fix exception on :set introduced with curitem completion
This commit is contained in:
parent
7d9610c7e1
commit
170098683f
@ -92,7 +92,8 @@ class SettingValueCompletionModel(BaseCompletionModel):
|
|||||||
value = config.get(section, option, raw=True)
|
value = config.get(section, option, raw=True)
|
||||||
if not value:
|
if not value:
|
||||||
value = '""'
|
value = '""'
|
||||||
self.cur_item = self.new_item(cur_cat, value, "Current value")
|
self.cur_item, _descitem, _miscitem = self.new_item(cur_cat, value,
|
||||||
|
"Current value")
|
||||||
if hasattr(configdata.DATA[section], 'valtype'):
|
if hasattr(configdata.DATA[section], 'valtype'):
|
||||||
# Same type for all values (ValueList)
|
# Same type for all values (ValueList)
|
||||||
vals = configdata.DATA[section].valtype.complete()
|
vals = configdata.DATA[section].valtype.complete()
|
||||||
|
Loading…
Reference in New Issue
Block a user