Permalink
Browse files

Cache the current filepath when cwd == .

When editing a file in the current working directory, cache the filepath
just like when outside the cwd. (If b:Powerline_filepath isn't set, the
filepath isn't cached and vim recalculate everytime it draws the
statusline.)

Still doesn't cache when the filepath is empty.

Refs #179.
Refs #189.
  • Loading branch information...
1 parent dedefae commit f929a34cc6939fd4df6944b90b75239f90dd812a @idbrii idbrii committed with Aug 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/Powerline/Functions.vim
@@ -36,7 +36,7 @@ function! Powerline#Functions#GetFilepath() " {{{
endif
if ret == ('.' . dirsep)
- return ''
+ let ret = ''
endif
let b:Powerline_filepath = ret

0 comments on commit f929a34

Please sign in to comment.