mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[^yole] IDEA-83805 When duplicating a line, Ctrl+D moves cursor to the start of line
This commit is contained in:
@@ -20,6 +20,7 @@ xxx<caret>
|
||||
private void doTest(String before, @NonNls String ext, String after) {
|
||||
myFixture.configureByText("a." + ext, before);
|
||||
myFixture.performEditorAction(IdeActions.ACTION_EDITOR_DUPLICATE)
|
||||
println "/" + myFixture.editor.document.text.substring(myFixture.editor.caretModel.offset) + "/"
|
||||
myFixture.checkResult(after);
|
||||
}
|
||||
|
||||
@@ -33,6 +34,19 @@ class C {
|
||||
void foo() {}
|
||||
void <caret>foo() {}
|
||||
}
|
||||
'''
|
||||
}
|
||||
|
||||
public void testXmlTag() {
|
||||
doTest '''
|
||||
<root>
|
||||
<foo/><caret>
|
||||
</root>
|
||||
''', 'xml', '''
|
||||
<root>
|
||||
<foo/>
|
||||
<foo/><caret>
|
||||
</root>
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user