Cannot navigate in file pane; view is STUCK
In the current version of WinMerge - 2.16.36.0 - I am suddenly running into an issue where, once I save changes I've made to the file(s), the usable area of the Edit pane is suddenly severely restricted:
PROBLEM DESCRIPTION:
In the image above:
-
The 2-pixel border line across the bottom of the text. I believe this normally demarks the end of the file; however, in this case both files have 33 lines.
-
Note that the text focused in the panes begins on line 14.
-
I am unable to navigate or manipulate my view in order to see the text above line 14, nor below line 26.
-
If I use the left and right arrow keys, I can manuever my cursor beyond these points, but the view itself does not scroll, so I'm unable to see the cursor at all until I position the cursor back in the viewable area. However, I cannot move the cursor above or below the viewable area using the UP and DOWN arrow keys, only the left and right keys. Using up or down will not allow the cursor to navigate beyond the bounds seen in the image.
-
Note that the scroll bar at right also is grayed out and shows no scroll handle, so I cannot scroll the view manually. Using the scrollwheel on my mouse likewise has no effect.
This is a brand new laptop, I downloaded and installed the current version of WinMerge yesterday. Today, working with this package.json file, is the first time I've ever encountered the issue (and I've used WinMerge for probably over a decade -- it's always been solid until now!).
STEPS TO REPRODUCE
I'll try to recall the steps that led me to this point, although I cannot seem to duplicate this consistently:
-
I opened the two instances of package.json as seen here.
-
Noting that the "dependencies" section of the JSON file existed in the LEFT version, but not the RIGHT version, in the left-hand pane I highlighted from the comma at the end of line 23, to the curly brace at the end of the "dependencies" section (not visible in the image above).
-
I copied (Ctrl-C) the highlighted text, clicked to position my cursor at the end of line 23 in the right-hand pane, and pasted (Ctrl-V).
-
The text was successfully pasted into the right-hand pane.
-
I pressed Ctrl-S to save the file. At that moment the 2-pixel border appeared in the odd position seen here, cutting off everything after line 26 on both panes.
NOTES
In my initial frustration, I started trying various combinations of Ctrl-Z (undo), then repeating the action described above in various ways, and trying to click and highlight and scroll around, to get the problem to go away. A couple of things happened during this process that I failed to document the steps or chronology of:
-
Initially, when the problem first occurred, the top of the file (Line 1) was still visible in both panes. At some point I managed to shift or scroll the view such that it moved into the position you see here, with Line 14 being the first visible line. I have NOT been able to repeat this, and the view's been stuck at Line 14 ever since.
-
At one point, as I repeated the process, everything went back to normal -- at least on the right-hand pane. I pasted the text I wanted, saved, and everything looked great again. I tried a couple more times without the issue occuring. Then, still irritated that the problem occurred at all, I kept trying, and sure enough the issue returned. Unfortunately I'm not sure what was different about the times the problem occurred vs. when it did not.
-
Just now I tried pasting the text again, and saved, and the problem did NOT re-occur on the right-hand pane -- I can scroll, navigate, all is normal -- BUT the left-hand pane is still stuck!
It seems that the mode is set to display only the differences and their surroundings. You probably pressed Ctrl+D instead of Ctrl+S. Ctrl+D is the same as clicking View → Diff Context → Toggle All and 0-9 Lines menu item. Press Ctrl+D again to return to normal.
I suppose you're correct. I wasn't aware of that feature, and I guess I wasn't used to the new keyboard. Really confusing to have that turn on without knowing what was happening.
Thanks.