From 5292d45f99b45bb9add781592ba3354f6229318c Mon Sep 17 00:00:00 2001 From: Michael Coppola Date: Tue, 22 Oct 2024 11:59:16 -0400 Subject: [PATCH] vim ghost text rendering now uses pos_x and pos_y parameters --- examples/llama.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/llama.vim b/examples/llama.vim index 315d6ffb0..d5c9916a8 100644 --- a/examples/llama.vim +++ b/examples/llama.vim @@ -744,13 +744,13 @@ function! s:fim_on_stdout(pos_x, pos_y, is_auto, job_id, data, event = v:null) elseif s:vim_ghost_text let l:new_suffix = s:content[0] if !empty(l:new_suffix) - call prop_add(line('.'), col('.'), { + call prop_add(s:pos_y, s:pos_x + 1, { \ 'type': s:hint_hlgroup, \ 'text': l:new_suffix \ }) endif for line in s:content[1:] - call prop_add(line('.'), 0, { + call prop_add(s:pos_y, 0, { \ 'type': s:hint_hlgroup, \ 'text': line, \ 'text_padding_left': s:get_indent(line), @@ -758,7 +758,7 @@ function! s:fim_on_stdout(pos_x, pos_y, is_auto, job_id, data, event = v:null) \ }) endfor if !empty(l:info) - call prop_add(line('.'), 0, { + call prop_add(s:pos_y, 0, { \ 'type': s:info_hlgroup, \ 'text': ' ' . l:info, \ 'text_padding_left': col('$'),