Skip to content

Commit 443a6ed

Browse files
committed
Add 'ShowDiffDialogOnDrop' option to control diff dialog display on file drop
1 parent 1bf4519 commit 443a6ed

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

editor/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ type editorConfig struct {
8888
HideMouseWhenTyping bool
8989
IgnoreSaveConfirmationWithCloseButton bool
9090
UseWSL bool
91+
ShowDiffDialogOnDrop bool
9192
}
9293

9394
type cursorConfig struct {

editor/window.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3482,7 +3482,7 @@ func (w *Window) dropEvent(e *gui.QDropEvent) {
34823482
false,
34833483
)
34843484
} else {
3485-
if bufName != "" {
3485+
if editor.config.Editor.ShowDiffDialogOnDrop && bufName != "" {
34863486
w.s.howToOpen(filepath)
34873487
} else {
34883488
fileOpenInBuf(filepath)

0 commit comments

Comments
 (0)