Commits

ZyX_I  committed 204dd5f

Fixed matcher, added mode segment

  • Participants
  • Parent commits 54be112

Comments (0)

Files changed (3)

File aurum-addon-info.txt

         "test/globtopattern.in",
         "test/globtopattern.vim",
         "test/gwine",
+        "test/hgrc",
         "test/hgtestbranchedrepo.tar.xz",
         "test/hgtestrepo.tar.xz",
         "test/maps-annotate.in",

File autoload/aurum/powerline.vim

     u"segments": {
         u"left": [
             {
+                u"name": u"mode",
+                u"module": u"powerline.segments.vim",
+            },
+            {
                 u"type": u"string",
                 u"contents": u"Commit",
                 u"highlight_group": [u"line_current_symbol"],

File python/aurum/powerline.py

             'highlight': ['file_vcs_status_'+statchar, 'file_vcs_status']
            }]
 
-def is_commit():
-    return vim.eval('&ft') == 'aurumcommit'
+def is_commit(matcher_info):
+    return vim.eval('getbufvar({0}, "&ft")'.format(matcher_info['bufnr'])) == 'aurumcommit'
 
 # vim: ft=python ts=4 sw=4 sts=4 et tw=120