Closed Bakudankun closed 2 years ago
:edit
:call ddu#custom#set_global(#{ui: 'ff'})
:call ddu#start(#{sources: [#{name: 'file'}]})
:call ddu#ui#ff#do_action('chooseAction')
cd
:call ddu#ui#ff#do_action('itemAction', #{name: 'do'})
:enew
Whatever action you select at step 7, the same thing will occur.
The windows is not cleared; just do what is selected at step 7 (closing the FF UI).
This problem was resolved when I tried next patch. I don't know whether it has any side effects, but I didn't find one.
diff --git a/denops/@ddu-uis/ff.ts b/denops/@ddu-uis/ff.ts index 7f2c47f..4caaaa8 100644 --- a/denops/@ddu-uis/ff.ts +++ b/denops/@ddu-uis/ff.ts @@ -309,7 +309,7 @@ export class Ui extends BaseUi<Params> { } if ((await fn.winnr(args.denops, "$")) == 1) { - await args.denops.cmd("enew"); + await args.denops.cmd(`buffer ${args.context.bufNr}`); } else { await args.denops.cmd("close!"); await fn.win_gotoid(args.denops, args.context.winId);
OK. I have fixed.
Steps to reproduce
:edit
any file:call ddu#custom#set_global(#{ui: 'ff'})
:call ddu#start(#{sources: [#{name: 'file'}]})
:call ddu#ui#ff#do_action('chooseAction')
cd
and:call ddu#ui#ff#do_action('itemAction', #{name: 'do'})
:enew
is executed at that windowWhatever action you select at step 7, the same thing will occur.
Expected behaviour
The windows is not cleared; just do what is selected at step 7 (closing the FF UI).
Additional information
This problem was resolved when I tried next patch. I don't know whether it has any side effects, but I didn't find one.
Environment