Skip to content

Commit

Permalink
fix:space after cd
Browse files Browse the repository at this point in the history
Error after FloatermNew in window. it showed '''Error detected while processing function floaterm#run[7]..floaterm#new[36]..floaterm#terminal#open[22]..floaterm#path#chdir:
line    2:
E492: Not an editor command: cdC:\Users\xxx'''
  • Loading branch information
Julpikar authored and voldikss committed Sep 2, 2023
1 parent 3bf0beb commit eeb3f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/floaterm/path.vim
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,5 @@ endfunction

function! floaterm#path#chdir(path) abort
let l:cd = { 0: 'cd', 1: 'lcd', 2: 'tcd' }[haslocaldir()]
silent execute l:cd . fnameescape(a:path)
silent execute l:cd . ' ' . fnameescape(a:path)
endfunction

0 comments on commit eeb3f6b

Please sign in to comment.