File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ function! hdevtools#insert_type()
589
589
590
590
let l: pos_lines = split (l: output_for_pos , ' \n' )
591
591
if len (l: pos_lines ) == 0
592
- call hdevtools#print_error (' hdevtools#insert_type: No Type Information. hdevtools answered: ' . l: output_for_pos )
592
+ call hdevtools#print_error ('hdevtools#insert_type: No Type Information.)
593
593
return
594
594
endif
595
595
let l: pos_last_line = l: pos_lines [-1 ]
@@ -602,10 +602,11 @@ function! hdevtools#insert_type()
602
602
let l: string_at_linenumber = getline (l: linenumber_of_identifier )
603
603
let l: identifier = (split (l: string_at_linenumber ))[0 ]
604
604
605
- let l: cmd_to_get_type_of_identifier = hdevtools#build_command_bare (' info' , shellescape (l: file ) . ' ' . l: identifier )
605
+ let l: cmd_to_get_type_of_identifier = hdevtools#build_command_bare (' info' , shellescape (l: file ) . ' ' . shellescape ( l: identifier) )
606
606
let l: output_for_type = system (l: cmd_to_get_type_of_identifier )
607
607
608
608
if v: shell_error != 0
609
+ call hdevtools#print_error (" hdevtools#insert_type: Couldn't get type for " . l: identifier . " . hdevtools answered: " . l: last_line )
609
610
for l: line in split (l: output_for_type , ' \n' )
610
611
call hdevtools#print_error (l: line )
611
612
endfor
You can’t perform that action at this time.
0 commit comments