How can I stop one view from moving the other when adding lines?
Paul-LinNY last edited by
Using version 7.4.2 with the same file open in both the left and right views when I add lines in one of the views it moves the file position in the other view.
Specifically, if I am viewing lines 1 to 46 in the left view, and lines 1956 to 2001 in the right view, and I add line 2002 in the right view the left view jumps to show lines 1957 to 2002 to mirror the right view.
This is annoying. Can I stop it?
Scott Sumner last edited by Scott Sumner
You didn’t say if you had
Synchronize Vertical Scrollingon or off but I’m going to presume you have it on/enabled.
When I try this I see a slightly different behavior; still wrong, but different:
- File in primary view is at Line 1 at the top
- Same file cloned in the secondary view, last line of the file at the bottom of the window
Synchronize Vertical Scrolling: ON/enabled
- Add a bunch of lines to the secondary view version of the file, pressing the Enter key after each
- PROBLEM: secondary view does not scroll with the Enter key to show the newly added lines; it takes arrowing down or pulling the scrollbar down to see those newly added lines! I AM TYPING BLIND HERE! :-D
When using the down arrow key or the scrollbar, the version in the primary view, because
Synchronize Vertical Scrollingis ON, also moves down an equivalent number of lines (this seems to be correct behavior)
Note that the “PROBLEM” behavior does not occur for me if
Synchronize Vertical Scrollingis OFF/disabled.
Paul-LinNY last edited by
I have the Synchronize Vertical Scrolling OFF/disabled when I see the problem behavior.
When I turn Synchronize Vertical Scrolling ON it gets weird.
If both views are at line 1 with my focus in the left view, and I then set Synchronize ON, then move the focus to the right view and scroll down to the end (2003) the left view follows along.
If I then move the focus back to the left view the cursor disappears and both views stay at the end. If I then press the down arrow once both views snap to line 2 and the cursor appears at line 2!
If I then move the focus back to the right view the cursor again disappears and both views stay at the top. If I then press the down arrow once both views snap to the bottom of the file and the cursor appears back at line 2003!
With sychronize ON each view seems to have its own memory of where you left it and it goes there when you move the focus dragging the other view along with it.
With synch OFF, the left view at line 100, the focus in the right view I can scroll the right view independently of the left. If I add a line in the right view at line 20 (above the position of the left view) the left view doesn’t move. If I add a line in the right view at line 120, (below the top of the left view), the line opens up in the left view. If I add a line in the right view at line 160, (below the bottom of the left view screen), the left view doesn’t move. But, if I move further down in the file in the right view and add a line at say 1800, the left view will snap down to show the added line.
The behavior is hightly inconsistent. Hmmmmmmmmm.