[
https://issues.jboss.org/browse/AS7-6352?page=com.atlassian.jira.plugin.s...
]
Kabir Khan commented on AS7-6352:
---------------------------------
This happens on OS X Lion - java version "1.6.0_37"
I've actually noticed it was weird for a while, it is only recently that I realised
that the visual cursor position was wrong, while the cursor position under the hood is
where expected. Without that realisation it becomes very weird to try to edit :-)
I see this also happens on a fresh line, I'll summarize here - [] means visul cursor
position. Hopefully that might shed some light even if you can't reproduce.
Initially I enter:
/zob[] I move my cursor to 'b'
/zo[b] Now I hit backspace
/zb[] Now I hit backspace again
/b[] Now I hit backspace again
b[] Hitting backspace again has no effect since the cursor is actually at the
beginning, to delete the 'b' I need to go to the right, so:
b [] Now backspace deletes the 'b' and I end up with
[]
Another example:
/zob[] I move my cursor to 'b' since I meant to start writing 'subsystem'
and not 'zobsystem'
/zo[b] Now I hit backspace
/zb[] Now I hit backspace again
/b[] Now I enter 's'
/sb[] Now I enter 'u'
/sub[] Now I want to append 'system', so I enter 's'
/susb[] I realize the cursor was in a different place than what it looked like, so I hit
backspace
/sub[] I now try to move the cursor one step to the right
/sub [] I enter 's'
/sub s[] So now it makes even less sense :-)
This only seems to affect deletions when I go back, if I delete from the end everything is
fine, e.g.:
/zub[] delete
/zu[] delete
/z[] delete
/[] Press 's'
/s[] Press 'u'
/su[]
etc.
CLI cursor marker position is not consistent
--------------------------------------------
Key: AS7-6352
URL:
https://issues.jboss.org/browse/AS7-6352
Project: Application Server 7
Issue Type: Feature Request
Components: CLI
Reporter: Kabir Khan
Assignee: Alexey Loubyansky
Fix For: 7.2.0.Alpha1
To reproduce, execute
/subsystem=jmx:read-resource
Now press the up arrow, to get that command again so you see
/subsystem=jmx:read-resource
The cursor is at the end. Now I want to delete 'jmx' and put in 'ee', so
I move the cursor to the ':'. I press backspace to delete the 'x' but the
cursor marker jumps back to the end of the line, however when I press backspace again the
'm' gets deleted. This appears to be at the end of the line when I delete the
'j' and enter the 'ee'. So what happens under the hood is fine, but the
marker appears to be in the wrong place after it has been moved and editing starts.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira