From: SourceForge.net <no...@so...> - 2008-04-15 10:04:04
|
Bugs item #1942313, was opened at 2008-04-14 22:08 Message generated for change (Comment added) made by halyavin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1942313&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: editor core Group: normal bug Status: Pending Resolution: Works For Me Priority: 5 Private: No Submitted By: Markus Laker (markuslaker) Assigned to: Nobody/Anonymous (nobody) Summary: Expanding a fold twice moves caret unexpectedly Initial Comment: I'm using 4.3pre13 on Debian Testing (with Java 1.6.0_04) and on Ubuntu Feisty (with Java 1.5.0_11). I get the same results on both machines. Create the following file, and save it as test.cpp: int a = 1; void bcd() { // } void efg() { // } void hij() { // } Change the folding mode (if necessary) to `indent'. Move the caret to the `hij' line. Press Alt+Backspace to contract the fold. It works. Press Alt+Enter to expand the fold. It works. Press Alt+Enter a second time. The caret moves unexpectedly to the `bcd' line. I think this is a bug: I think the caret should stay where it is, and jEdit should either do nothing or print an error message. ---------------------------------------------------------------------- >Comment By: halyavin (halyavin) Date: 2008-04-15 14:04 Message: Logged In: YES user_id=1600924 Originator: NO It happens both in trunk and 4.3pre13. You don't even need to press alt+backspace and alt+enter at first - just press alt+enter on "void hij(){" line and the caret jumps to bcd line. Moreover, it jumps to bcd line from all lines. ---------------------------------------------------------------------- Comment By: Andre Bender (mumion) Date: 2008-04-15 13:56 Message: Logged In: YES user_id=105305 Originator: NO I'm running jEdit 4.3pre13 on a WinXP with the latest JDK1.5. The cursor does jump here to. But I'll give a detailed description what i observed. Assuming the example provided above: - closing the first fold, leaving the second open, the curser jumps to the second fold. - when leaving the first fold open and closing the second fold, the cursor jumps not at all. - wenn closing all folds the cursor does also not jump - leaving all folds open, the cursor jumps to the first fold ---------------------------------------------------------------------- Comment By: Matthieu Casanova (kpouer) Date: 2008-04-15 13:13 Message: Logged In: YES user_id=285591 Originator: NO Hi, it doesn't happens with the trunk version, can someone else try ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1942313&group_id=588 |