summaryrefslogtreecommitdiffstats
path: root/powerline/matchers/vim/plugin/gundo.py
blob: e0fe3776bbf69cb9c4b46357b8838d3633d5a717 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# vim:fileencoding=utf-8:noet
from __future__ import (unicode_literals, division, absolute_import, print_function)

import os

from powerline.bindings.vim import buffer_name


def gundo(matcher_info):
	name = buffer_name(matcher_info)
	return name and os.path.basename(name) == b'__Gundo__'


def gundo_preview(matcher_info):
	name = buffer_name(matcher_info)
	return name and os.path.basename(name) == b'__Gundo_Preview__'