There was an error while loading. Please reload this page.
1 parent ca44a13 commit ff6a871Copy full SHA for ff6a871
autoload/floaterm/path.vim
@@ -136,5 +136,9 @@ function! floaterm#path#get_root() abort
136
endfunction
137
138
function! floaterm#path#chdir(path) abort
139
- silent execute 'tcd '. fnameescape(a:path)
+ if exists(":tcd") == 2
140
+ silent execute 'tcd '. fnameescape(a:path)
141
+ else
142
+ silent execute 'cd '. fnameescape(a:path)
143
+ endif
144
0 commit comments