Fixed KT-5894 Select Woes: no need to select code block + end of line
+ corrected selection of when #KT-5894 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
fun foo() {
|
||||
if (a) {
|
||||
<caret>f()
|
||||
g()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
fun foo() {
|
||||
if (a) {
|
||||
<selection><caret>f</selection>()
|
||||
g()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
fun foo() {
|
||||
if (a) {
|
||||
<selection><caret>f()</selection>
|
||||
g()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
fun foo() {
|
||||
if (a) {
|
||||
<selection> <caret>f()
|
||||
</selection> g()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
fun foo() {
|
||||
if (a) {
|
||||
<selection> <caret>f()
|
||||
g()
|
||||
</selection> }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
fun foo() {
|
||||
if (a) <selection>{
|
||||
<caret>f()
|
||||
g()
|
||||
}</selection>
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
fun foo() {
|
||||
<selection> if (a) {
|
||||
<caret>f()
|
||||
g()
|
||||
}
|
||||
</selection>}
|
||||
@@ -1,13 +1,13 @@
|
||||
fun main(args : Array<String>) {
|
||||
for (i in 1..100) {
|
||||
<selection>when {
|
||||
<selection> when {
|
||||
i%3 == 0 -> {print("Fizz"); continue;}
|
||||
i%5 == 0 -> {print("Buzz"); continue;}
|
||||
|
||||
(i%3 != 0 && i%5 != 0) -> {print(i); continue;}<caret>
|
||||
else -> println()
|
||||
}</selection>
|
||||
}
|
||||
}
|
||||
</selection> }
|
||||
}
|
||||
|
||||
fun foo() : Unit {
|
||||
|
||||
Reference in New Issue
Block a user