Skip to content

Commit c81e5a0

Browse files
authored
Merge pull request #49 from yukimemi/main
🐛 Fix fn.getbufline.
2 parents fc62148 + a9bc412 commit c81e5a0

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)