Author Topic: Delete causes jump in second child window  (Read 503 times)

jorick

  • Senior Community Member
  • Posts: 328
  • Hero Points: 15
Delete causes jump in second child window
« on: October 12, 2015, 04:04:15 pm »
I had a file open in the main window and a child window (thanks to Window->Duplicate).  I was moving a sizable piece of code from a large function (located near the top of the file in the main window) to it's own function (farther down in the file in the child window).  After creating the function in the child window, I added a call to it in the main window and then deleted the old code.  This caused the code in the child window to do a large jump so that the function I wrote wasn't in the window any more.  I wanted it in the child window so that I could refer to it when continuing to edit in the main window.  I don't think it should have jumped at all.

Before the deletion
Child window displaying lines 1271 to 1333 with the function start at line 1271
Main window about to delete lines 757 to 821 (65 lines)
After the deletion
Child window displaying lines 1281 to 1343 with the function start off the top of the screen at line 1206
Child window jumped 10 lines

The jump size changes depending on what's being displayed.  If I scroll the child window up so that I can see the comment header, the jump is only 2 lines but the function is still way out of the window by around 70+ lines.