|
From: SourceForge.net <no...@so...> - 2008-10-31 20:10:59
|
Bugs item #2057771, was opened at 2008-08-19 00:28 Message generated for change (Comment added) made by k_satoda You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=2057771&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: goebbe (goebbe) Assigned to: Nobody/Anonymous (nobody) Summary: pre15: relative position of cursor is lost after restart Initial Comment: I am using jedit4.3pre15 with Sun JavaRE 1.6.0_07 on WinXP SP2. Compared with jedit4.3pre14 I discovered the following regression: The relative position of the cursor within an open buffer (sreen) is not restored when exiting and restarting Jedit. Instead it seems that after a restart the last position of the cursor is now shown in the first line of the screen. (if there are enough lines after the last cursor position to move the document up) Expected behaviour: Wherever the cursor is and however I have scrolled the document - the screen-view (last position of cursor and scroll-position) should be recovered after a restart of Jedit. (as in jedit4.3pre14 and before) To reproduce: 1) open a document with many lines. 2) scroll down (a bit) the document 3) place the cursor somewhere in the middle of the buffer view 4) remember how the screen looks like 5) exit and restart Jedit 6) discover that the cursor ("active line") is now at the top of the screen. Actually when there are only view lines at the end of the document that are not shown, then the cursor (active line) ends up somewhere between the last relative position and the top of the screen (first line of the buffer-view). In this case the position after restart is close to unpredictable, since it will neither be the first line on screen nor will it be the last position on the screen. I think the new behaviour is confusing, since it leads to unpredictable results for the position of the active line, after a restart. Moreover I think that orientation is easier when the old position is kept. Sorry, I don't know the proper names of the different components. Hopefully this is helpful anyway. Please don't hesitate to ask for more information. Keep up the good work! ---------------------------------------------------------------------- >Comment By: Kazutoshi Satoda (k_satoda) Date: 2008-11-01 05:10 Message: I have also been confused many times on this new behavior. I seek in the source how the scroll position was restored at 4.3pre14, but nothing found. Then I re-examined the old and new behaviors. I realized that the old behavior was not restoring the scroll position, but centering the caret with restored caret position. But still couldn't find why the behavior was changed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=2057771&group_id=588 |