jEdit 4.3.2
Java 1.6.0_22
Ubuntu 10.04
run jEdit in server mode
reconnect to the jEdit server specifying -reuseview -settings and an existing file.
If the file is displayed and the textarea shows the caret then reconnecting to the
file removes the caret.
jEdit will update the line number correctly from the +line: parameter as per the display
at the bottom of the screen.
jEdit behaves the same whether or not +line: is present.
If the file is not open, or if the file is open but not visible, then jEdit correctly
creates a caret for the textarea.
Submitted | gknittl - 2010-12-13 07:00:26 | Assigned | |
---|---|---|---|
Priority | 5 | Labels | |
Status | open | Group | None |
Resolution | None |
2010-12-13 20:06:01 rschwenn |
Yea, this is quite annoying and I'm glad that someone found the way to reproduce.
|
---|---|
2010-12-15 06:32:21 gknittl |
The difference in the activity log between the buffer hidden (caret gets set correctly)
vs the buffer displayed seems to be these two lines:
|
2010-12-16 04:15:30 gknittl |
a rough and ready partial workaround is ctrl+2, ctrl+0
|
2010-12-16 04:34:45 ezust |
ctrl-l (scroll and center caret) also brings focus back to textarea. I imagine that's
a better workaround...
|
2011-02-01 16:13:40 gknittl |
Root Problem:
|
2011-02-01 16:32:51 gknittl |
I can't attach the modified jedit.jar as the Uploaded file must be no larger than 256k. If anyone wants to try it, please send me an email via sourceforge. |
2011-02-01 18:22:46 gknittl |
patch id is 3169868 |
2011-02-08 16:59:14 gknittl |
Googling the problem of moving Java to the front indicates the Swing code required
seems to vary by platform and perhaps even by window manager. The code in EditServer
that I proposed to put under the if statement is clearly trying to get jEdit to the
front programmatically. jEdit is not coming into view on Ubuntu 10.04 netbook remix
with the 4.3.2 EditServer code or even the extra code in the trunk for EditServer
revision 19324. I don't have a cross platform solution for the moving to front problem
and am not able to test on Windows at the moment so I'm retracting the EditServer
portion of the fix.
|