File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,7 @@ function! denops#server#stop() abort
29
29
endfunction
30
30
31
31
function ! denops#server#restart () abort
32
- if denops#_internal#server#proc#is_started ()
33
- call denops#server#stop ()
34
- endif
32
+ call denops#server#stop ()
35
33
call denops#server#start ()
36
34
endfunction
37
35
@@ -58,13 +56,14 @@ function! denops#server#connect() abort
58
56
endfunction
59
57
60
58
function ! denops#server#close () abort
59
+ if ! denops#_internal#server#chan#is_connected ()
60
+ return
61
+ endif
61
62
call denops#_internal#server#chan#close ()
62
63
endfunction
63
64
64
65
function ! denops#server#reconnect () abort
65
- if denops#_internal#server#chan#is_connected ()
66
- call denops#server#close ()
67
- endif
66
+ call denops#server#close ()
68
67
call denops#server#connect ()
69
68
endfunction
70
69
You can’t perform that action at this time.
0 commit comments