Skip to content

Commit

Permalink
Fix sourceOptions overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Sep 29, 2023
1 parent 1bf2e4b commit 887bdea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions denops/ddu/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ export function main(denops: Denops) {

if (opt?.updateOptions) {
const updateOptions = opt.updateOptions;

if (
(updateOptions.ui && updateOptions.ui !== ddu.getOptions().ui) ||
(updateOptions.uiOptions !== ddu.getOptions().uiOptions) ||
Expand Down
2 changes: 1 addition & 1 deletion denops/ddu/ddu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ export class Ddu {
itemAction.userSource = convertUserString(itemAction.userSource);
// Overwrite current path
if (!itemAction.userSource.options) {
itemAction.userSource.options = itemAction.sourceOptions;
itemAction.userSource.options = {};
}
itemAction.userSource.options.path = itemAction.sourceOptions.path;
if (this.context.path.length > 0) {
Expand Down

0 comments on commit 887bdea

Please sign in to comment.