Skip to content

Commit ff6a871

Browse files
jerrywang1981voldikss
authored andcommitted
E492: Not an editor command: tcd /home/jerry
1 parent ca44a13 commit ff6a871

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎autoload/floaterm/path.vim‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,9 @@ function! floaterm#path#get_root() abort
136136
endfunction
137137

138138
function! floaterm#path#chdir(path) abort
139-
silent execute 'tcd '. fnameescape(a:path)
139+
if exists(":tcd") == 2
140+
silent execute 'tcd '. fnameescape(a:path)
141+
else
142+
silent execute 'cd '. fnameescape(a:path)
143+
endif
140144
endfunction

0 commit comments

Comments
 (0)