Skip to content

Commit

Permalink
fix issue #137
Browse files Browse the repository at this point in the history
using `vim.chdir` as workaround
  • Loading branch information
Yggdroot committed May 12, 2018
1 parent 6c53f30 commit ddfcfe0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/leaderf/python/leaderf/fileExpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,10 @@ def startExplorer(self, win_pos, *args, **kwargs):
root_markers = lfEval("g:Lf_RootMarkers")
mode = lfEval("g:Lf_WorkingDirectoryMode")

# https://github.com/neovim/neovim/issues/8336
if lfEval("has('nvim')") == '1':
os.chdir = vim.chdir

cur_buf_name = lfDecode(vim.current.buffer.name)
fall_back = False
if 'a' in mode:
Expand Down

0 comments on commit ddfcfe0

Please sign in to comment.