mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-30 20:53:37 +08:00
2af2bdb424
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. |
||
---|---|---|
.. | ||
tabline | ||
wordcount/formatters | ||
ale.vim | ||
branch.vim | ||
bufferline.vim | ||
capslock.vim | ||
commandt.vim | ||
csv.vim | ||
ctrlp.vim | ||
ctrlspace.vim | ||
default.vim | ||
eclim.vim | ||
example.vim | ||
hunks.vim | ||
neomake.vim | ||
netrw.vim | ||
nrrwrgn.vim | ||
obsession.vim | ||
po.vim | ||
promptline.vim | ||
quickfix.vim | ||
syntastic.vim | ||
tabline.vim | ||
tagbar.vim | ||
tmuxline.vim | ||
undotree.vim | ||
unicode.vim | ||
unite.vim | ||
virtualenv.vim | ||
whitespace.vim | ||
windowswap.vim | ||
wordcount.vim | ||
ycm.vim |