Skip to content
This repository has been archived by the owner on Dec 5, 2018. It is now read-only.

Commit

Permalink
Cache the current filepath when cwd == .
Browse files Browse the repository at this point in the history
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
pydave committed Aug 4, 2012
1 parent 7f53b5c commit 0259703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/Powerline/Functions.vim
Expand Up @@ -36,7 +36,7 @@ function! Powerline#Functions#GetFilepath() " {{{
endif endif


if ret == ('.' . dirsep) if ret == ('.' . dirsep)
return '' let ret = ''
endif endif


let b:Powerline_filepath = ret let b:Powerline_filepath = ret
Expand Down

0 comments on commit 0259703

Please sign in to comment.