mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
correct indent on enter in multiline non-g-strings
This commit is contained in:
+1
-1
@@ -247,7 +247,7 @@ public class GroovyEnterHandler extends EnterHandlerDelegateAdapter {
|
||||
EditorModificationUtil.insertStringAtCaret(editor, "\n");
|
||||
}
|
||||
else {
|
||||
EditorModificationUtil.insertStringAtCaret(editor, "\n");
|
||||
originalHandler.execute(editor, dataContext);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -77,6 +77,7 @@ public class EnterActionTest extends GroovyFormatterTestCase {
|
||||
public void testGstring7() throws Throwable { doTest(); }
|
||||
public void testGstring8() throws Throwable { doTest(); }
|
||||
public void testGstring9() throws Throwable { doTest(); }
|
||||
public void testMultilineIndent() throws Throwable { doTest(); }
|
||||
public void testSpaces1() throws Throwable { doTest(); }
|
||||
public void testString1() throws Throwable { doTest(); }
|
||||
public void testString2() throws Throwable { doTest(); }
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
'''
|
||||
class Foo {
|
||||
void foo() {}<caret>
|
||||
}
|
||||
'''
|
||||
-----
|
||||
'''
|
||||
class Foo {
|
||||
void foo() {}
|
||||
<caret>
|
||||
}
|
||||
'''
|
||||
Reference in New Issue
Block a user