D7: editor multi-cursor support
Add secondary_cursors field to Editor with insert_char_multi, delete_back_multi, delete_forward_multi methods. Right-to-left processing ensures position shifts don't corrupt earlier insertions. 7 new tests: add/clear, all_positions, insert, delete_back, delete_forward, unicode, duplicate-add.
This commit is contained in:
@@ -5,10 +5,15 @@ edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
syscall = { package = "redox_syscall", version = "0.8", features = ["std"] }
|
||||
redox_scheme = { package = "redox-scheme", version = "0.11" }
|
||||
libredox = "0.1"
|
||||
syscall = { path = "../../../../../local/sources/syscall", package = "redox_syscall", features = ["std"] }
|
||||
redox_scheme = { path = "../../../../../local/sources/redox-scheme", package = "redox-scheme" }
|
||||
libredox = { path = "../../../../../local/sources/libredox" }
|
||||
log = { version = "0.4", features = ["std"] }
|
||||
sha2 = "0.10"
|
||||
thiserror = "2"
|
||||
toml = "0.8"
|
||||
|
||||
[patch.crates-io]
|
||||
libredox = { path = "../../../../../local/sources/libredox" }
|
||||
redox-scheme = { path = "../../../../../local/sources/redox-scheme" }
|
||||
redox_syscall = { path = "../../../../../local/sources/syscall" }
|
||||
|
||||
Reference in New Issue
Block a user