Skip to content

Commit

Permalink
Add 'ShowDiffDialogOnDrop' option to control diff dialog display on f…
Browse files Browse the repository at this point in the history
…ile drop
  • Loading branch information
akiyosi committed Jul 25, 2024
1 parent 1bf4519 commit 443a6ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions editor/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ type editorConfig struct {
HideMouseWhenTyping bool
IgnoreSaveConfirmationWithCloseButton bool
UseWSL bool
ShowDiffDialogOnDrop bool
}

type cursorConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion editor/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -3482,7 +3482,7 @@ func (w *Window) dropEvent(e *gui.QDropEvent) {
false,
)
} else {
if bufName != "" {
if editor.config.Editor.ShowDiffDialogOnDrop && bufName != "" {
w.s.howToOpen(filepath)
} else {
fileOpenInBuf(filepath)
Expand Down

0 comments on commit 443a6ed

Please sign in to comment.