Skip to content

Commit

Permalink
fix(vtext): add bufnr to vim's prop_add (#4979)
Browse files Browse the repository at this point in the history
  • Loading branch information
fannheyward committed Apr 12, 2024
1 parent a5aadcb commit 694401d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/coc/vtext.vim
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function! coc#vtext#add(bufnr, src_id, line, blocks, opts) abort
let base = s:get_option_vim(align, column, get(a:opts, 'text_wrap', 'truncate'))
for [text, hl] in blocks
let type = coc#api#create_type(a:src_id, hl, a:opts)
let opts = extend({ 'text': text, 'type': type }, base)
let opts = extend({ 'text': text, 'type': type, 'bufnr': a:bufnr }, base)
if first && !empty(indent)
let opts['text'] = indent . text
endif
Expand Down

0 comments on commit 694401d

Please sign in to comment.