Skip to content

Commit a9bc412

Browse files
committed
🐛 Fix fn.getbufline.
1 parent fc62148 commit a9bc412

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

denops_std/function/buffer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ export async function getbufline(
212212
lnum: string | number,
213213
end?: string | number,
214214
): Promise<string[]> {
215+
if (end == undefined) {
216+
return await denops.call("getbufline", name, lnum) as string[];
217+
}
215218
return await denops.call("getbufline", name, lnum, end) as string[];
216219
}
217220

0 commit comments

Comments
 (0)