about move caret to end of the character instead of its begining
EeeMt opened this issue · comments
EeeMt commented
public static ......
When i use the acejump and type a
and type the target key, the caret will move to the location between t
and a
, like this st|atic
.
But because of my own habits, I wanna the caret locate between a
and t
, like this sta|tic
.
I've tried to read the code and modify it, but i failed. I don't know where should i change.
So, tell me what should i do.
And maybe add this feature(a option) will be helpful for someone like me.
EeeMt commented
I found it.
at org.hunmr.acejump.runnable.JumpRunnable
@Override
public void run() {
_offsetToJump.editor.getContentComponent().requestFocus();
_offsetToJump.editor.getCaretModel().moveToOffset(_offsetToJump.offset);
_offsetToJump.editor.getSelectionModel().removeSelection();
}
modify to
public void run() {
_offsetToJump.editor.getContentComponent().requestFocus();
_offsetToJump.editor.getCaretModel().moveToOffset(_offsetToJump.offset + 1);
_offsetToJump.editor.getSelectionModel().removeSelection();
}
can simply reach it.