Move Side to EditedText from Operation

This commit is contained in:
Andras Schmelczer 2025-10-26 20:23:22 +00:00
commit de89532880
6 changed files with 119 additions and 55 deletions

View file

@ -1,7 +1,6 @@
---
source: src/operation_transformation/edited_text.rs
expression: operations
snapshot_kind: text
---
EditedText {
text: "hello world! How are you? Adam",
@ -15,5 +14,15 @@ EditedText {
<delete ' you? Adam' from 20>,
<insert ' you doing? Albert' at 31>,
],
operation_sides: [
Left,
Left,
Left,
Left,
Left,
Left,
Left,
Left,
],
cursors: [],
}

View file

@ -1,7 +1,6 @@
---
source: src/operation_transformation/edited_text.rs
expression: operations
snapshot_kind: text
---
EditedText {
text: "hello world!",
@ -10,5 +9,10 @@ EditedText {
<equal ' ' from 5>,
<equal 'world!' from 6>,
],
operation_sides: [
Left,
Left,
Left,
],
cursors: [],
}