@@ -40,9 +40,9 @@ export async function bufadd(
40
40
*/
41
41
export async function bufexists (
42
42
denops : Denops ,
43
- name : string | number ,
43
+ expr : string | number ,
44
44
) : Promise < boolean > {
45
- const result = await denops . call ( "bufexists" , name ) as number ;
45
+ const result = await denops . call ( "bufexists" , expr ) as number ;
46
46
return ! ! result ;
47
47
}
48
48
@@ -53,9 +53,9 @@ export async function bufexists(
53
53
*/
54
54
export async function buflisted (
55
55
denops : Denops ,
56
- name : string | number ,
56
+ expr : string | number ,
57
57
) : Promise < boolean > {
58
- const result = await denops . call ( "buflisted" , name ) as number ;
58
+ const result = await denops . call ( "buflisted" , expr ) as number ;
59
59
return ! ! result ;
60
60
}
61
61
@@ -70,9 +70,9 @@ export async function buflisted(
70
70
*/
71
71
export async function bufload (
72
72
denops : Denops ,
73
- name : string | number ,
73
+ expr : string | number ,
74
74
) : Promise < void > {
75
- await denops . call ( "bufload" , name ) ;
75
+ await denops . call ( "bufload" , expr ) ;
76
76
}
77
77
78
78
/**
@@ -82,9 +82,9 @@ export async function bufload(
82
82
*/
83
83
export async function bufloaded (
84
84
denops : Denops ,
85
- name : string | number ,
85
+ expr : string | number ,
86
86
) : Promise < boolean > {
87
- const result = await denops . call ( "bufloaded" , name ) as number ;
87
+ const result = await denops . call ( "bufloaded" , expr ) as number ;
88
88
return ! ! result ;
89
89
}
90
90
@@ -119,9 +119,9 @@ export async function bufloaded(
119
119
*/
120
120
export async function bufname (
121
121
denops : Denops ,
122
- name ?: string | number ,
122
+ expr ?: string | number ,
123
123
) : Promise < string > {
124
- return await denops . call ( "bufname" , name ) as string ;
124
+ return await denops . call ( "bufname" , expr ) as string ;
125
125
}
126
126
127
127
/**
@@ -140,10 +140,10 @@ export async function bufname(
140
140
*/
141
141
export async function bufnr (
142
142
denops : Denops ,
143
- name ?: string | number ,
143
+ expr ?: string | number ,
144
144
create ?: boolean ,
145
145
) : Promise < number > {
146
- return await denops . call ( "bufnr" , name , create ) as number ;
146
+ return await denops . call ( "bufnr" , expr , create ) as number ;
147
147
}
148
148
149
149
/**
@@ -158,9 +158,9 @@ export async function bufnr(
158
158
*/
159
159
export async function bufwinid (
160
160
denops : Denops ,
161
- name : string | number ,
161
+ expr : string | number ,
162
162
) : Promise < number > {
163
- return await denops . call ( "bufwinid" , name ) as number ;
163
+ return await denops . call ( "bufwinid" , expr ) as number ;
164
164
}
165
165
166
166
/**
@@ -177,9 +177,9 @@ export async function bufwinid(
177
177
*/
178
178
export async function bufwinnr (
179
179
denops : Denops ,
180
- name : string | number ,
180
+ expr : string | number ,
181
181
) : Promise < number > {
182
- return await denops . call ( "bufwinnr" , name ) as number ;
182
+ return await denops . call ( "bufwinnr" , expr ) as number ;
183
183
}
184
184
185
185
/**
@@ -208,14 +208,14 @@ export async function bufwinnr(
208
208
*/
209
209
export async function getbufline (
210
210
denops : Denops ,
211
- name : string | number ,
211
+ expr : string | number ,
212
212
lnum : string | number ,
213
213
end ?: string | number ,
214
214
) : Promise < string [ ] > {
215
215
if ( end == undefined ) {
216
- return await denops . call ( "getbufline" , name , lnum ) as string [ ] ;
216
+ return await denops . call ( "getbufline" , expr , lnum ) as string [ ] ;
217
217
}
218
- return await denops . call ( "getbufline" , name , lnum , end ) as string [ ] ;
218
+ return await denops . call ( "getbufline" , expr , lnum , end ) as string [ ] ;
219
219
}
220
220
221
221
/**
@@ -233,10 +233,10 @@ export async function getbufline(
233
233
*/
234
234
export async function setbufline (
235
235
denops : Denops ,
236
- name : string | number ,
236
+ expr : string | number ,
237
237
lnum : string | number ,
238
238
text : string | string [ ] ,
239
239
) : Promise < boolean > {
240
- const result = await denops . call ( "setbufline" , name , lnum , text ) as number ;
240
+ const result = await denops . call ( "setbufline" , expr , lnum , text ) as number ;
241
241
return ! ! result ;
242
242
}
0 commit comments