Fix exception on :set introduced with curitem completion

This commit is contained in:
Florian Bruhin 2014-06-04 18:39:38 +02:00
parent 7d9610c7e1
commit 170098683f

View File

@ -92,7 +92,8 @@ class SettingValueCompletionModel(BaseCompletionModel):
value = config.get(section, option, raw=True)
if not 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'):
# Same type for all values (ValueList)
vals = configdata.DATA[section].valtype.complete()