Commits

ZyX_I  committed c9d18de

@%aurum/powerline: Fixed some errors, reenabled aurumcommit theme

  • Participants
  • Parent commits 71a2886

Comments (0)

Files changed (2)

File autoload/aurum/powerline.vim

 EOF
 "▶1 VimEnter
 function s:F.define_local_themes()
-return
 python <<EOF
 powerline.add_local_theme("aurum.powerline.is_commit", {
     u"default_module": u"aurum.powerline",
             {
                 u"type": u"string",
                 u"contents": u"Commit",
-                u"highlight": [u"line_current_symbol"],
+                u"highlight_group": [u"line_current_symbol"],
+            },
+            {
+                u"name": u"branch",
             },
         ],
     }

File python/aurum/powerline.py

             for rcid in rcids.itervalues():
                 rc.remove(rcid)
             rcids.clear()
-            buffers[bufnr].pop('funcs')
+            if 'funcs' in buffers[bufnr]:
+                buffers[bufnr].pop('funcs')
 
 def setup_buffer(bufnr, func_name, funcs=None, *args):
     if not started:
         bdict = buffers[bufnr]
 
     if not funcs:
-        if bdict['funcs']:
+        if 'funcs' in bdict:
             funcs = bdict['funcs']
         else:
             funcs = guess()
             'highlight': ['file_vcs_status_'+statchar, 'file_vcs_status']
            }]
 
-def xxx_uncommon():
-    return 'TEXT'
-
 def is_commit():
     return vim.eval('&ft') == 'aurumcommit'