vim-airline/autoload/airline/extensions
Grzegorz Milka 2af2bdb424 Display not exists symbol correctly in Git repos
This commit fixes a bug, where untracked files in Git repos did not get the not
exists symbol displayed. The fix works by replacing the previous check for
whether currently edited file is a directory or not with a check based on
`findfile`. More detailed explanation follows.

VCS extension to vim-airline checks whether currently edited file is untracked.
The previous `s:get_git_untracked` implementation, which was used for the
aforementioned purpose for Git repos, was buggy, because it did not return the
untracked symbol in most situations, i.e. the edited file is untracked, but it
was treated as if it wasn't.
The root cause was the second clause in boolean expression checking the output
of `git status`:

    if output[0:1] is# '??' && output[3:-2] is? a:file

It was added to make sure we are not checking a directory, but at this point in
the program `a:file` is an absolute path, while output of `git status` is a
relative path from the root of git repo. So the `is?` expression failed in most
situations.
2016-10-25 19:26:44 +02:00
..
tabline Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
wordcount/formatters Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
ale.vim Add support for ALE, the Async Linting Engine 2016-10-14 10:36:21 +02:00
branch.vim Display not exists symbol correctly in Git repos 2016-10-25 19:26:44 +02:00
bufferline.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
capslock.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
commandt.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
csv.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
ctrlp.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
ctrlspace.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
default.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
eclim.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
example.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
hunks.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
neomake.vim Support for neomake 2016-09-27 21:21:35 +02:00
netrw.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
nrrwrgn.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
obsession.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
po.vim fixup for async feature 2016-10-14 10:36:21 +02:00
promptline.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
quickfix.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
syntastic.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
tabline.vim do not skip empty sections for the tabline 2016-09-27 21:44:00 +02:00
tagbar.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
tmuxline.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
undotree.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
unicode.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
unite.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
virtualenv.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
whitespace.vim Fix whitespace symbol empty string has extra space 2016-10-02 01:22:50 -07:00
windowswap.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
wordcount.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
ycm.vim Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00