File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11let s: hdevtools_info_buffer = -1
22
33function ! s: shutdown ()
4- let l: cmd = hdevtools#build_command (' admin' , ' --stop-server' )
4+ let l: cmd = hdevtools#build_command_bare (' admin' , ' --stop-server' )
55 " Must save the output in order for the command to actually run:
66 let l: dummy = system (l: cmd )
77endfunction
88
99function ! hdevtools#prepare_shutdown ()
10- let l: cmd = hdevtools#build_command (' admin' , ' --status' )
10+ let l: cmd = hdevtools#build_command_bare (' admin' , ' --status' )
1111 " Must save the output in order for the command to actually run:
1212 let l: dummy = system (l: cmd )
1313
@@ -462,6 +462,14 @@ function! hdevtools#build_command(command, args)
462462 return l: cmd
463463endfunction
464464
465+ " Does not include g:hdevtools_options
466+ function ! hdevtools#build_command_bare (command , args )
467+ let l: cmd = ' hdevtools'
468+ let l: cmd = l: cmd . ' ' . a: command . ' '
469+ let l: cmd = l: cmd . a: args
470+ return l: cmd
471+ endfunction
472+
465473function ! hdevtools#clear_highlight ()
466474 if exists (' w:hdevtools_type_matchid' )
467475 call matchdelete (w: hdevtools_type_matchid )
You can’t perform that action at this time.
0 commit comments