mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
live template: when a lookup item is inserted so that the caret is in the next variable, move to that variable
This commit is contained in:
@@ -122,8 +122,13 @@ public class TemplateState implements Disposable {
|
||||
myLookupListener = new LookupAdapter() {
|
||||
@Override
|
||||
public void itemSelected(LookupEvent event) {
|
||||
if (isCaretOutsideCurrentSegment() && !isCaretInsideNextVariable()) {
|
||||
gotoEnd(true);
|
||||
if (isCaretOutsideCurrentSegment()) {
|
||||
if (isCaretInsideNextVariable()) {
|
||||
nextTab();
|
||||
}
|
||||
else {
|
||||
gotoEnd(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user