Here is the issue report email sent by me today to UltraEdit support with subject:
UC - Next/Previous Difference vertical scrolling not working as expected with Relational Lines Mode
The vertical scrolling done on executing the command
Next Difference or
Previous Difference (green down/up arrow symbols between the file names) is not working as expected after running a text comparison for two *.c files with right file having two added code blocks using 64-bit UltraCompare 2024.1.0.5 on Windows 11 24H2 on having enabled the relational lines mode compare option in the session compare settings. The first click on the green down arrow results in scrolling the first file to the bottom and the second file with the two inserted code blocks to the first inserted code block. Then the command
Next Difference is disabled as it can be seen on the green down arrow symbol which changed to a gray down error symbol although there is one more difference below the inserted block displayed in the right text window pane.
Here are the steps to reproduce this issue.
- Extract the attached RAR file Relational_Lines_Mode_Sample.rar with two *.c files provided by an UltraCompare user in forum to a temporary directory of your choice.
- Make sure the directory %APPDATA%\IDMComp\UltraCompare does not exist by deleting it if already existing.
- Start UltraCompare. There are default settings used because of not existing application data directory.
- Click on the Text button to start a new text comparison session.
- Click on ribbon tab Home on the command Set compare options to open the Current Session Properties - Text Mode dialog window.
- Select for File 1 the file File_Left.c and for File 2 the file File_Right.c.
- Check in group Compare options the option Relational lines mode which is by default unchecked. This is the most important step as the scrolling issue exists only with this option checked. Please refer to the attached file Relational_Lines_Mode_Settings.webp.
- Click on the button OK and Run. The result should be the display as captured to the attached file Relational_Lines_Mode_Display_1.webp.
- Click on the green down arrow symbol in the middle of the two files to execute the command Next Difference.
The file in the left window pane is scrolled to the bottom of the file. The file in the right window pane is scrolled to lines 145 to 185 with the first inserted block being in the lines 165 to 180 in file
File_Right.c. The symbol of the command
Next Difference is disabled now as it can be seen on the attached image
Relational_Lines_Mode_Display_2.webp although there is a second difference too.
The vertical scrolling was done completely wrong with enabled relational lines mode.
The expected display after
Next Difference execution can be seen on the attached file
Relational_Lines_Mode_Display_3.webp created after manually scrolling vertically on left and right file until getting this display. The symbol of the command
Next Difference should still be enabled as on this screenshot.
A second click on symbol of the command
Next Difference should result in a display as captured to attached file
Relational_Lines_Mode_Display_4.webp. The symbol of the command
Next Difference is grayed out now as disabled because there is no more difference below. The symbol of the command
Previous Difference is enabled now as there is one more difference above.