mirror of
https://github.com/enso-org/enso.git
synced 2024-11-23 16:18:23 +03:00
Fix TextEdit range (#4069)
Typo: TextEdit's range should refer to the old buffer's range rather than the new one.
This commit is contained in:
parent
a5df4d4716
commit
86eee6199d
@ -261,7 +261,7 @@ class CollaborativeBuffer(
|
||||
// also gets a notification.
|
||||
val change = FileEdit(
|
||||
path,
|
||||
List(TextEdit(buffer.fullRange, file.content)),
|
||||
List(TextEdit(oldBuffer.fullRange, file.content)),
|
||||
oldBuffer.version.toHexString,
|
||||
buffer.version.toHexString
|
||||
)
|
||||
|
@ -912,7 +912,7 @@ class VcsManagerTest extends BaseServerTest with RetrySpec {
|
||||
},
|
||||
"end" : {
|
||||
"line" : 0,
|
||||
"character" : 13
|
||||
"character" : 12
|
||||
}
|
||||
},
|
||||
"text" : "file contents"
|
||||
@ -959,7 +959,7 @@ class VcsManagerTest extends BaseServerTest with RetrySpec {
|
||||
},
|
||||
"end" : {
|
||||
"line" : 0,
|
||||
"character" : 13
|
||||
"character" : 12
|
||||
}
|
||||
},
|
||||
"text" : "file contents"
|
||||
|
@ -31,7 +31,7 @@ object model {
|
||||
*
|
||||
* {{{
|
||||
* 0|inc x =
|
||||
* 1| x + 1
|
||||
* 1| x + 1
|
||||
* ^^^^^^^^^
|
||||
* 012345678
|
||||
* }}}
|
||||
|
Loading…
Reference in New Issue
Block a user