We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 645bae4 + 6175085 commit 3578f6bCopy full SHA for 3578f6b
1 file changed
main.ts
@@ -247,6 +247,10 @@ export default class Opener extends Plugin {
247
// console.log('bruv');
248
oldopenFile && oldopenFile.apply(leaf, [file, openState]);
249
openElsewhere = true;
250
+ // close potentially prepared empty leaf (fixes #14)
251
+ if (leaf !== this && this.getViewState()?.type == 'empty') {
252
+ this.detach();
253
+ }
254
// console.log("openElsewhere: ",openElsewhere);
255
// return;
256
}
0 commit comments