File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
" ======================================================================
2
2
"
3
- " floaterm.vim -
3
+ " floaterm.vim -
4
4
"
5
5
" Created by skywind on 2021/12/15
6
- " Last Modified: 2021/12/15 06:47:18
6
+ " Last Modified: 2023/03/17 12:26:25
7
7
"
8
8
" ======================================================================
9
9
@@ -34,7 +34,7 @@ function! asyncrun#runner#floaterm#run(opts)
34
34
endif
35
35
let cmd = ' FloatermNew '
36
36
let cmd .= ' --wintype=float'
37
- if has_key (a: opts , ' position' )
37
+ if has_key (a: opts , ' position' )
38
38
let cmd .= ' --position=' . fnameescape (a: opts .position)
39
39
endif
40
40
if has_key (a: opts , ' width' )
@@ -46,7 +46,7 @@ function! asyncrun#runner#floaterm#run(opts)
46
46
if has_key (a: opts , ' title' )
47
47
let cmd .= ' --title=' . fnameescape (a: opts .title )
48
48
endif
49
- let cmd .= ' --autoclose=0 '
49
+ let cmd .= ' --autoclose=' . get ( a: opts , ' autoclose ' , 0 )
50
50
let cmd .= ' --silent=' . get (a: opts , ' silent' , 0 )
51
51
let cwd = (a: opts .cwd == ' ' )? getcwd () : (a: opts .cwd)
52
52
let cmd .= ' --cwd=' . fnameescape (cwd)
You can’t perform that action at this time.
0 commit comments