IDEA-167746 Carry completion list over to the next line on Shift+Enter

This commit is contained in:
peter
2017-05-12 22:54:22 +02:00
parent 32be586eee
commit fb4599a4f0
5 changed files with 72 additions and 0 deletions
@@ -1840,4 +1840,16 @@ ita<caret>
assert lookup
}
void "test don't close lookup when starting a new line"() {
myFixture.configureByText 'a.java', 'class Foo {{ "abc"<caret> }}'
type '.'
assert lookup
edt {
myFixture.performEditorAction(IdeActions.ACTION_EDITOR_START_NEW_LINE)
assert lookup
assert lookup.lookupStart == myFixture.editor.caretModel.offset
assert myFixture.editor.document.text.contains('\n')
}
}
}