-
Notifications
You must be signed in to change notification settings - Fork 810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wimerge saves changes to the wrong file #1985
Comments
How did you open the file p136.c? This can happen if you open the p136.c file with the command line option /o as follows: The command line option /o is an option to change the destination of the specified file.
|
@sdottaka As far as a I recall I opened it from a taskbar shortcut. I suppose it is possible I re-used an open copy that originally started from looking at a diff in tortoise it, but it was a new folder comparison. I don't know if tortoise git uses the /o option in the background ever. I didn't use the comand line myself,. |
If you start WinMerge from TortoiseGit to resolve conflicts, the |
@sdottaka in that case I suppose it is not a bug as such and we can close this issue. My suggestion for improvement would be that if Winmerge is started with /o option, then when the user opens a new tab (or starts a new file or folder comparison) the user is warned that this option is in effect and given the option to cancel it. Thanks for your help :-) |
With PR #1988, the |
winmerge: Version 2.16.32.0 x64, OS: Windows 11 Enterprise 22H2
I compare two source code folders (large projects with many files/subfolders)
I open a file (in the vvideo example p136.c) and compare the two versions of that file and leave the tab open,
I open another file (bridge.cpp) and compare the two versions of that file
I copy a change from the right to left file in the bridge.cpp and save using Ctrl+S or Alt+F+S
Instead of saving the changes to bridge.cpp, p136.c (file in tab 1) is overwritten with a copy of bridge.cpp (file from tab2)
Any subsequent file opened doesthe same thing - looks OK until you save changes, then the left file becomes the file from the first tab opened.
If I restart Winmerge it behaves properly for a while then starts doing the same thing again sometime later.
Video: https://epsusllc-my.sharepoint.com/:v:/g/personal/iain_crampton_epssw_com/EfHulHXWGjlEh0XbdOnZjQ4BXvHarr3TYlPd65wvvY9_zA?e=dth5Zs
The text was updated successfully, but these errors were encountered: