Remove OrderedOperation
This commit is contained in:
parent
5759b6bf66
commit
a070872bd3
7 changed files with 171 additions and 302 deletions
|
|
@ -6,38 +6,14 @@ snapshot_kind: text
|
|||
EditedText {
|
||||
text: "hello world! How are you? Adam",
|
||||
operations: [
|
||||
OrderedOperation {
|
||||
order: 0,
|
||||
operation: <delete 'hello world!'>,
|
||||
},
|
||||
OrderedOperation {
|
||||
order: 12,
|
||||
operation: <insert 'Hello, my friend!'>,
|
||||
},
|
||||
OrderedOperation {
|
||||
order: 12,
|
||||
operation: <equal ' '>,
|
||||
},
|
||||
OrderedOperation {
|
||||
order: 13,
|
||||
operation: <equal 'How'>,
|
||||
},
|
||||
OrderedOperation {
|
||||
order: 16,
|
||||
operation: <equal ' '>,
|
||||
},
|
||||
OrderedOperation {
|
||||
order: 17,
|
||||
operation: <equal 'are'>,
|
||||
},
|
||||
OrderedOperation {
|
||||
order: 20,
|
||||
operation: <delete ' you? Adam'>,
|
||||
},
|
||||
OrderedOperation {
|
||||
order: 31,
|
||||
operation: <insert ' you doing? Albert'>,
|
||||
},
|
||||
<delete 'hello world!' from 0>,
|
||||
<insert 'Hello, my friend!' at 12>,
|
||||
<equal ' ' from 12>,
|
||||
<equal 'How' from 13>,
|
||||
<equal ' ' from 16>,
|
||||
<equal 'are' from 17>,
|
||||
<delete ' you? Adam' from 20>,
|
||||
<insert ' you doing? Albert' at 31>,
|
||||
],
|
||||
cursors: [],
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,18 +6,9 @@ snapshot_kind: text
|
|||
EditedText {
|
||||
text: "hello world!",
|
||||
operations: [
|
||||
OrderedOperation {
|
||||
order: 0,
|
||||
operation: <equal 'hello'>,
|
||||
},
|
||||
OrderedOperation {
|
||||
order: 5,
|
||||
operation: <equal ' '>,
|
||||
},
|
||||
OrderedOperation {
|
||||
order: 6,
|
||||
operation: <equal 'world!'>,
|
||||
},
|
||||
<equal 'hello' from 0>,
|
||||
<equal ' ' from 5>,
|
||||
<equal 'world!' from 6>,
|
||||
],
|
||||
cursors: [],
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue