Skip to content

Commit 924c851

Browse files
committed
fix #517
1 parent 7a5b15d commit 924c851

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/core/src/utils/LineNumberExpression.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface LineNumberContext {
4646
*/
4747
contentStart: number;
4848
/**
49-
* The end of the content, so the last line of the content.
49+
* The end of the file, so the last line of the content.
5050
*/
5151
contentEnd: number;
5252
/**

packages/obsidian/src/ObsidianContextMenu.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@ export class ObsidianContextMenu implements IContextMenu {
2929

3030
public showWithEvent(event: MouseEvent): void {
3131
this.menu.showAtMouseEvent(event);
32+
event.stopImmediatePropagation();
33+
event.preventDefault();
3234
}
3335
}

0 commit comments

Comments
 (0)