Fix :Maps when :verbose map does not have a 2nd line with comments (#1067)

This commit is contained in:
Antoine
2020-07-29 20:50:19 -07:00
committed by GitHub
parent 7bc8eccf57
commit 2115caeba1

View File

@@ -1234,6 +1234,9 @@ function! fzf#vim#maps(mode, ...)
call add(list, printf('%s %s', curr, s:green(src, 'Comment')))
let curr = ''
else
if !empty(curr)
call add(list, curr)
endif
let curr = line[3:]
endif
endfor