Skip to content

Commit 73e6386

Browse files
committed
nvim: remove BufferVirtualText since removed neovim/neovim@49f5b57587ec
1 parent acbae1a commit 73e6386

File tree

3 files changed

+0
-52
lines changed

3 files changed

+0
-52
lines changed

nvim/apidef.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -285,20 +285,6 @@ func SetBufferVirtualText(buffer Buffer, nsID int, line int, chunks []VirtualTex
285285
name(nvim_buf_set_virtual_text)
286286
}
287287

288-
// BufferVirtualText gets the virtual text (annotation) for a buffer line.
289-
//
290-
// The virtual text is returned as list of lists, whereas the inner lists have
291-
// either one or two elements. The first element is the actual text, the
292-
// optional second element is the highlight group.
293-
//
294-
// The format is exactly the same as given to SetBufferVirtualText.
295-
//
296-
// If there is no virtual text associated with the given line, an empty list
297-
// is returned.
298-
func BufferVirtualText(buffer Buffer, lnum int) []VirtualTextChunk {
299-
name(nvim_buf_get_virtual_text)
300-
}
301-
302288
// TabpageWindows returns the windows in a tabpage.
303289
func TabpageWindows(tabpage Tabpage) []Window {
304290
name(nvim_tabpage_list_wins)

nvim/apiimp.go

Lines changed: 0 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nvim/nvim_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -566,14 +566,6 @@ func testVirtualText(t *testing.T, v *Nvim) func(*testing.T) {
566566
t.Fatalf("namespaceID: got %d, want %d", got, nsID)
567567
}
568568

569-
chunks2, err := v.BufferVirtualText(Buffer(0), 0)
570-
if err != nil {
571-
t.Fatal(err)
572-
}
573-
if !reflect.DeepEqual(chunks, chunks2) {
574-
t.Fatalf("BufferVirtualText = %+v, want %+v", chunks, chunks2)
575-
}
576-
577569
if err := v.ClearBufferNamespace(Buffer(0), nsID, 0, -1); err != nil {
578570
t.Fatal(err)
579571
}

0 commit comments

Comments
 (0)