Skip to content

Commit

Permalink
Update floaterm wrapper
Browse files Browse the repository at this point in the history
Fixes #27.
  • Loading branch information
ptzz committed Feb 18, 2021
1 parent 4211761 commit 73fb502
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autoload/floaterm/wrapper/lf.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function! floaterm#wrapper#lf#(cmd) abort
function! floaterm#wrapper#lf#(cmd, jobopts, ...) abort
let lf_tmpfile = tempname()
let lastdir_tmpfile = tempname()
let original_dir = getcwd()
Expand All @@ -14,5 +14,6 @@ function! floaterm#wrapper#lf#(cmd) abort

exe "lcd " . original_dir
let cmd = [&shell, &shellcmdflag, cmd]
return [cmd, {'on_exit': funcref('LfCallback', [lf_tmpfile, lastdir_tmpfile])}, v:false]
let a:jobopts.on_exit = funcref('LfCallback', [lf_tmpfile, lastdir_tmpfile])
return [v:false, cmd]
endfunction

0 comments on commit 73fb502

Please sign in to comment.