@@ -18,7 +18,7 @@ if has('reltime')
18
18
let g: syntastic_start = reltime ()
19
19
endif
20
20
21
- let g: syntastic_version = ' 3.3.0-121 '
21
+ let g: syntastic_version = ' 3.3.0-122 '
22
22
23
23
" Sanity checks {{{1
24
24
@@ -305,17 +305,16 @@ function! s:CacheErrors(checker_names) " {{{2
305
305
306
306
let names = []
307
307
for checker in clist
308
- let type = checker.getFiletype ()
309
- let name = checker.getName ()
310
- call syntastic#log#debug (g: SyntasticDebugTrace , ' CacheErrors: Invoking checker: ' . type . ' /' . name)
308
+ let cname = checker.getFiletype () . ' /' . checker.getName ()
309
+ call syntastic#log#debug (g: SyntasticDebugTrace , ' CacheErrors: Invoking checker: ' . cname)
311
310
312
311
let loclist = checker.getLocList ()
313
312
314
313
if ! loclist.isEmpty ()
315
314
if decorate_errors
316
- call loclist.decorate (type , name )
315
+ call loclist.decorate (cname )
317
316
endif
318
- call add (names, [ type , name] )
317
+ call add (names, cname )
319
318
320
319
let newLoclist = newLoclist.extend (loclist)
321
320
@@ -327,13 +326,13 @@ function! s:CacheErrors(checker_names) " {{{2
327
326
328
327
" set names {{{3
329
328
if ! empty (names)
330
- if len (syntastic#util#unique (map ( copy (names), ' v:val[0] ' ))) == 1
331
- let type = names[0 ][ 0 ]
332
- let name = join (map (names, ' v:val[1] ' ), ' , ' )
329
+ if len (syntastic#util#unique (map ( copy (names), ' substitute( v:val, "\\m/.*", "", "") ' ))) == 1
330
+ let type = substitute ( names[0 ], ' \m/.* ' , ' ' , ' ' )
331
+ let name = join (map ( names, ' substitute( v:val, "\\m.\\{-}/", "", "") ' ), ' , ' )
333
332
call newLoclist.setName ( name . ' (' . type . ' )' )
334
333
else
335
334
" checkers from mixed types
336
- call newLoclist.setName (join (map ( names, ' v:val[0] . "/" . v:val[1] ' ) , ' , ' ))
335
+ call newLoclist.setName (join (names, ' , ' ))
337
336
endif
338
337
endif
339
338
" }}}3
@@ -427,7 +426,7 @@ function! SyntasticMake(options) " {{{2
427
426
endif
428
427
lgetexpr err_lines
429
428
430
- let errors = copy (getloclist (0 ))
429
+ let errors = deepcopy (getloclist (0 ))
431
430
432
431
if has_key (a: options , ' cwd' )
433
432
execute ' lcd ' . fnameescape (old_cwd)
0 commit comments