surround with: adjust range if no selection is present so multi-line statement can be wrapped (IDEA-156463)

This commit is contained in:
Anna Kozlova
2016-05-25 18:40:17 +03:00
parent 5d877a889b
commit 28d41e3516
7 changed files with 78 additions and 2 deletions
@@ -0,0 +1,7 @@
class Test {
{
<caret> for(int i = 0; i< 9; i++) {
System.out.println("42");
}
}
}
@@ -0,0 +1,9 @@
class Test {
{
if () {
for(int i = 0; i< 9; i++) {
System.out.println("42");
}
}
}
}