Skip to content

Commit 29f049d

Browse files
committed
nvim: fix testcase on testExtmarks
1 parent 2020fff commit 29f049d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nvim/nvim_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -676,11 +676,11 @@ func testExtmarks(t *testing.T, v *Nvim) func(*testing.T) {
676676
t.Fatal(err)
677677
}
678678
const (
679-
extMarkID = 10
679+
extMarkID = 1
680680
wantLine = 1
681681
wantCol = 3
682682
)
683-
gotExtMarkID, err := v.SetBufferExtmark(Buffer(0), nsID, extMarkID, wantLine, wantCol, make(map[string]interface{}))
683+
gotExtMarkID, err := v.SetBufferExtmark(Buffer(0), nsID, wantLine, wantCol, make(map[string]interface{}))
684684
if err != nil {
685685
t.Fatal(err)
686686
}
@@ -705,7 +705,7 @@ func testExtmarks(t *testing.T, v *Nvim) func(*testing.T) {
705705
t.Fatalf("got %d extmarks Col but want %d", extmarks[0].Col, wantCol)
706706
}
707707

708-
pos, err := v.BufferExtmarkByID(Buffer(0), nsID, gotExtMarkID)
708+
pos, err := v.BufferExtmarkByID(Buffer(0), nsID, gotExtMarkID, make(map[string]interface{}))
709709
if err != nil {
710710
t.Fatal(err)
711711
}

0 commit comments

Comments
 (0)