[BUG] All panes are read-only when WinMerge is launched as a Git merge tool during rebase
Description
When WinMerge is launched in 3-way merge mode as a Git merge tool during a rebase conflict, all three panes are read-only.
The File -> Read-Only submenu shows Left Read-Only, Middle Read-Only, and Right Read-Only as checked, and none of these settings can be toggled.
Only Left Read-Only and Right Read-Only should be checked by default, and all three settings should be toggleable. The middle pane should be editable so that the user can resolve the merge conflict.
Steps to reproduce
- Configure WinMerge as the merge tool for Git.
- Perform a Git rebase that causes a merge conflict.
- WinMerge starts in 3-way merge mode.
- Open the
File -> Read-Onlymenu. - Observe that
Left Read-Only,Middle Read-Only, andRight Read-Onlyare all checked and cannot be toggled. - Since all three panes are read-only, it is impossible to modify the files and resolve the conflict.
WinMerge version
2.16.60.0
Platform
Windows x64
Additional information
Command Line: -u -wl -wr -fm -dl "Mine: ./test_LOCAL_153.txt" -dm "Merged: ./test_BASE_153.txt" -dr "Theirs: ./test_REMOTE_153.txt" ./test_LOCAL_153.txt ./test_BASE_153.txt ./test_REMOTE_153.txt -o test.txt
In WinMerge 2.16.60, when the -o option is specified, merge editing is performed in the fourth pane (the KDiff3-style merge result pane) by default.
In this mode, all three input panes are read-only, so this is the expected behavior.
If you prefer the previous behavior, where the middle pane is editable, uncheck "Use Merge Result Pane for 2/3-way merge" on the Editor/Compare/Merge page of the Options dialog.
I found that this is the intended behavior introduced by PR #3515.
The Merge Result pane was displayed at the bottom of the window, but I overlooked it because the Output pane was displayed below it.
Sorry for the confusion. This is not a bug. Thank you for the explanation!
I also thought the new stable release is broken and revert to the old version. The release notes mention the PRs which went into it, but it's not really apparent that behaviour changed unless you actually look through all of the PRs. Would've been nice if something like this gets mentioned explicitly at the top of the release notes.
@jmg2k
Thanks for the feedback. You're right, this behavior change should have been highlighted more clearly in the release notes. I'll make sure to do so in future releases.