File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ function s:coverage_job(args)
275
275
" autowrite is not enabled for jobs
276
276
call go#cmd#autowrite ()
277
277
278
- let import_path = go#package#ImportPath ( expand (' %:p:h' ) )
278
+ let status_dir = expand (' %:p:h' )
279
279
function ! s: error_info_cb (job, exit_status, data) closure
280
280
let status = {
281
281
\ ' desc' : ' last status' ,
@@ -287,7 +287,7 @@ function s:coverage_job(args)
287
287
let status.state = " failed"
288
288
endif
289
289
290
- call go#statusline#Update (import_path , status)
290
+ call go#statusline#Update (status_dir , status)
291
291
endfunction
292
292
293
293
let a: args .error_info_cb = function (' s:error_info_cb' )
@@ -308,7 +308,7 @@ function s:coverage_job(args)
308
308
let jobdir = fnameescape (expand (" %:p:h" ))
309
309
execute cd . jobdir
310
310
311
- call go#statusline#Update (import_path , {
311
+ call go#statusline#Update (status_dir , {
312
312
\ ' desc' : " current status" ,
313
313
\ ' type' : " coverage" ,
314
314
\ ' state' : " started" ,
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ function! s:async_guru(args) abort
152
152
return
153
153
endif
154
154
155
- let import_path = go#package#ImportPath ( expand (' %:p:h' ) )
155
+ let status_dir = expand (' %:p:h' )
156
156
let statusline_type = printf (" %s" , a: args .mode )
157
157
158
158
if ! has_key (a: args , ' disable_progress' )
@@ -188,7 +188,7 @@ function! s:async_guru(args) abort
188
188
let status.state = " failed"
189
189
endif
190
190
191
- call go#statusline#Update (import_path , status)
191
+ call go#statusline#Update (status_dir , status)
192
192
193
193
if has_key (a: args , ' custom_parse' )
194
194
call a: args .custom_parse (l: info .exitval, out)
@@ -208,7 +208,7 @@ function! s:async_guru(args) abort
208
208
let l: start_options .in_name = l: tmpname
209
209
endif
210
210
211
- call go#statusline#Update (import_path , {
211
+ call go#statusline#Update (status_dir , {
212
212
\ ' desc' : " current status" ,
213
213
\ ' type' : statusline_type,
214
214
\ ' state' : " analysing" ,
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ function s:rename_job(args)
63
63
call add (messages , a: msg )
64
64
endfunction
65
65
66
- let import_path = go#package#ImportPath ( expand (' %:p:h' ) )
66
+ let status_dir = expand (' %:p:h' )
67
67
68
68
function ! s: close_cb (chan) closure
69
69
let l: job = ch_getjob (a: chan )
@@ -79,7 +79,7 @@ function s:rename_job(args)
79
79
let status.state = " failed"
80
80
endif
81
81
82
- call go#statusline#Update (import_path , status)
82
+ call go#statusline#Update (status_dir , status)
83
83
84
84
call s: parse_errors (l: info .exitval, a: args .bang , messages )
85
85
endfunction
@@ -93,7 +93,7 @@ function s:rename_job(args)
93
93
let old_gopath = $GOPATH
94
94
let $GOPATH = go#path#Detect ()
95
95
96
- call go#statusline#Update (import_path , {
96
+ call go#statusline#Update (status_dir , {
97
97
\ ' desc' : " current status" ,
98
98
\ ' type' : " gorename" ,
99
99
\ ' state' : " started" ,
You can’t perform that action at this time.
0 commit comments