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.
  • Loading branch information...
1 parent 7f53b5c commit 025970317963cc0b32a4652db8999a3904374bc6 @idbrii committed 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 0259703

Please sign in to comment.