Extend Selection: whole literal with braces is selected after parameters (KT-13420)
#KT-13420 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
05269cea2f
commit
5aa0b7d2aa
@@ -0,0 +1,5 @@
|
||||
fun foo(f: (Int) -> Int) {}
|
||||
|
||||
fun test() {
|
||||
foo { <caret>it -> it + 1 }
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun foo(f: (Int) -> Int) {}
|
||||
|
||||
fun test() {
|
||||
foo { <caret><selection>it</selection> -> it + 1 }
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun foo(f: (Int) -> Int) {}
|
||||
|
||||
fun test() {
|
||||
foo { <caret><selection>it -> it + 1</selection> }
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun foo(f: (Int) -> Int) {}
|
||||
|
||||
fun test() {
|
||||
foo <selection>{ <caret>it -> it + 1 }</selection>
|
||||
}
|
||||
Reference in New Issue
Block a user