File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -242,11 +242,17 @@ else
242
242
243
243
let signlist = execute (' sign place buffer=' . buf )
244
244
for signline in split (signlist, ' \n' )[2 :]
245
- let tokens = matchlist (signline, ' \v^\s+\S+\=(\d+)\s+\S+\=(\d+)\s+\S+\=(.*) \s+\S+\=(\d+)$' )
245
+ let tokens = matchlist (signline, ' \v^\s+\S+\=(\d+)\s+\S+\=(\d+)\s+\S+\=(.{-})%( \s+\S+\=(\d+))= $' )
246
246
let line = str2nr (tokens[1 ])
247
247
let id = str2nr (tokens[2 ])
248
248
let name = tokens[3 ]
249
- let priority = str2nr (tokens[4 ])
249
+ let priority = tokens[4 ]
250
+ if empty (priority)
251
+ " Older Vim versions didn't report priority, so set the default value
252
+ " manually
253
+ let priority = ' 10'
254
+ endif
255
+ let priority = str2nr (priority)
250
256
call add (signs, {
251
257
\ ' lnum' : line ,
252
258
\ ' id' : id,
You can’t perform that action at this time.
0 commit comments