Skip to content

Commit

Permalink
use exepath of progname in case progpath erroneous
Browse files Browse the repository at this point in the history
fixes #349 where gvim was opened in terminal vim
  • Loading branch information
Konfekt authored and voldikss committed Apr 6, 2024
1 parent fe61226 commit 64b1003
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/floaterm/edita/vim/client.vim
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ endfunction

function! floaterm#edita#vim#client#EDITOR() abort
let args = [
\ shellescape(v:progpath),
\ shellescape(fnamemodify(v:progpath, ':t') ==# v:progname ?
\ v:progpath : exepath(v:progname)),
\ '--not-a-term',
\ '--clean',
\ '--noplugin',
Expand Down

0 comments on commit 64b1003

Please sign in to comment.