File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { unreachable } from "@core/errorutil/unreachable" ;
2
- import * as fn from "@denops/std/function" ;
2
+ import type * as fn from "@denops/std/function" ;
3
+ import { getbufinfo } from "@denops/std/helper/getbufinfo" ;
3
4
4
5
import { defineSource , type Source } from "../../source.ts" ;
5
6
@@ -44,7 +45,7 @@ type Filter = "buflisted" | "bufloaded" | "bufmodified";
44
45
export function buffer ( options : Readonly < BufferOptions > = { } ) : Source < Detail > {
45
46
const filter = options . filter ;
46
47
return defineSource ( async function * ( denops , _params , { signal } ) {
47
- const bufinfo = await fn . getbufinfo ( denops ) ;
48
+ const bufinfo = await getbufinfo ( denops ) ;
48
49
signal ?. throwIfAborted ( ) ;
49
50
50
51
// Filter and map buffers based on the provided filter option
Original file line number Diff line number Diff line change 1
1
import * as fn from "@denops/std/function" ;
2
+ import { getbufinfo } from "@denops/std/helper/getbufinfo" ;
2
3
3
4
import { defineSource , type Source } from "../../source.ts" ;
4
5
@@ -50,7 +51,7 @@ export function line(options: LineOptions = {}): Source<Detail> {
50
51
const expr = args [ 0 ] ?? "%" ; // Defaults to the current buffer if no argument is provided.
51
52
await fn . bufload ( denops , expr ) ; // Ensure the buffer is loaded.
52
53
signal ?. throwIfAborted ( ) ;
53
- const bufinfos = await fn . getbufinfo ( denops , expr ) ; // Retrieve buffer information.
54
+ const bufinfos = await getbufinfo ( denops , expr ) ; // Retrieve buffer information.
54
55
signal ?. throwIfAborted ( ) ;
55
56
const bufinfo = bufinfos [ 0 ] ;
56
57
Original file line number Diff line number Diff line change 114
114
"imports" : {
115
115
"@core/errorutil" : " jsr:@core/errorutil@^1.2.0" ,
116
116
"@core/iterutil" : " jsr:@core/iterutil@^0.9.0" ,
117
- "@denops/std" : " jsr:@denops/std@^7.3 .0" ,
117
+ "@denops/std" : " jsr:@denops/std@^7.5 .0" ,
118
118
"@denops/test" : " jsr:@denops/test@^3.0.4" ,
119
119
"@lambdalisue/systemopen" : " jsr:@lambdalisue/systemopen@^1.0.0" ,
120
120
"@lambdalisue/unnullish" : " jsr:@lambdalisue/unnullish@^1.0.2" ,
You can’t perform that action at this time.
0 commit comments