Fix “'NoneType' object is not iterable” error

Fixes #158
This commit is contained in:
ZyX 2013-02-04 00:19:04 +04:00
parent 57bd0af272
commit 7a25ab1d53
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class VimRenderer(Renderer):
self.window_cache[window_id] = (theme, segments)
else:
mode = 'nc'
theme, segments = self.window_cache.get(window_id, (None, None))
theme, segments = self.window_cache.get(window_id, (None, []))
for segment in segments:
segment['_space_left'] = 0
segment['_space_right'] = 0