@@ -2099,7 +2099,7 @@ func testCommand(v *Nvim) func(*testing.T) {
2099
2099
t .Run (path .Join (name , "Nvim" ), func (t * testing.T ) {
2100
2100
skipVersion (t , "v0.7.0" )
2101
2101
2102
- if err := v .AddUserCommand (tt .name , tt .command , tt .opts ); err != nil {
2102
+ if err := v .CreateUserCommand (tt .name , tt .command , tt .opts ); err != nil {
2103
2103
t .Fatal (err )
2104
2104
}
2105
2105
t .Cleanup (func () {
@@ -2122,7 +2122,7 @@ func testCommand(v *Nvim) func(*testing.T) {
2122
2122
2123
2123
b := v .NewBatch ()
2124
2124
2125
- b .AddUserCommand (tt .name , tt .command , tt .opts )
2125
+ b .CreateUserCommand (tt .name , tt .command , tt .opts )
2126
2126
if err := b .Execute (); err != nil {
2127
2127
t .Fatal (err )
2128
2128
}
@@ -2165,7 +2165,7 @@ func testCommand(v *Nvim) func(*testing.T) {
2165
2165
t .Run (path .Join (name , "Nvim" ), func (t * testing.T ) {
2166
2166
skipVersion (t , "v0.7.0" )
2167
2167
2168
- if err := v .AddBufferUserCommand (Buffer (0 ), tt .name , tt .command , tt .opts ); err != nil {
2168
+ if err := v .CreateBufferUserCommand (Buffer (0 ), tt .name , tt .command , tt .opts ); err != nil {
2169
2169
t .Fatal (err )
2170
2170
}
2171
2171
t .Cleanup (func () {
@@ -2188,7 +2188,7 @@ func testCommand(v *Nvim) func(*testing.T) {
2188
2188
2189
2189
b := v .NewBatch ()
2190
2190
2191
- b .AddBufferUserCommand (Buffer (0 ), tt .name , tt .command , tt .opts )
2191
+ b .CreateBufferUserCommand (Buffer (0 ), tt .name , tt .command , tt .opts )
2192
2192
if err := b .Execute (); err != nil {
2193
2193
t .Fatal (err )
2194
2194
}
0 commit comments