From 3020873ee47c0eb53d7ccf609029187a004bdb2d Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 20 Feb 2017 01:38:25 +0100 Subject: [PATCH] Use correct cwd in verbose output --- autoload/sy/repo.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/sy/repo.vim b/autoload/sy/repo.vim index fdb055c..d28f52d 100644 --- a/autoload/sy/repo.vim +++ b/autoload/sy/repo.vim @@ -72,7 +72,7 @@ function! sy#repo#get_diff_start(vcs, do_register) abort try execute chdir fnameescape(b:sy_info.dir) - call sy#verbose(printf('CMD: %s | CWD: %s', string(cmd), cwd), a:vcs) + call sy#verbose(printf('CMD: %s | CWD: %s', string(cmd), getcwd()), a:vcs) let b:sy_job_id_{a:vcs} = jobstart(cmd, extend(options, { \ 'on_stdout': function('s:callback_stdout_nvim'), \ 'on_exit': function('s:callback_exit'), @@ -92,7 +92,7 @@ function! sy#repo#get_diff_start(vcs, do_register) abort try execute chdir fnameescape(b:sy_info.dir) - call sy#verbose(printf('CMD: %s | CWD: %s', string(cmd), cwd), a:vcs) + call sy#verbose(printf('CMD: %s | CWD: %s', string(cmd), getcwd()), a:vcs) let opts = { \ 'in_io': 'null', \ 'out_cb': function('s:callback_stdout_vim', options),