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
242242
243243 let signlist = execute (' sign place buffer=' . buf )
244244 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+))= $' )
246246 let line = str2nr (tokens[1 ])
247247 let id = str2nr (tokens[2 ])
248248 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)
250256 call add (signs, {
251257 \ ' lnum' : line ,
252258 \ ' id' : id,
You can’t perform that action at this time.
0 commit comments