Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix filepath caching when cwd changes (Fix #179) #189

Closed
wants to merge 2 commits into
from
Commits on Aug 4, 2012
  1. Cache the current filepath when cwd == .

    pydave committed Aug 4, 2012
    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.
  2. Fix #179: Update the filepath when the cwd changes

    pydave committed Aug 4, 2012
    The g:Powerline_stl_path_style == 'relative' option requires the
    filepath to be updated everytime the cwd changes.
    
    Store the cwd and if the stored value's different from the current,
    clear the cached filepath.