Update rustyline to 10.
This commit is contained in:
parent
a12401a1fe
commit
107193e35f
@ -31,7 +31,7 @@ serde = { version = "1.0", default-features = false, features = ["derive", "allo
|
|||||||
serde_json = { version = "1.0", default-features = false, features = ["alloc"], optional = true }
|
serde_json = { version = "1.0", default-features = false, features = ["alloc"], optional = true }
|
||||||
unicode-xid = { version = "0.2", default-features = false, optional = true }
|
unicode-xid = { version = "0.2", default-features = false, optional = true }
|
||||||
rust_decimal = { version = "1.16", default-features = false, features = ["maths"], optional = true }
|
rust_decimal = { version = "1.16", default-features = false, features = ["maths"], optional = true }
|
||||||
rustyline = { version = "9", optional = true }
|
rustyline = { version = "10", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
serde_bytes = "0.11"
|
serde_bytes = "0.11"
|
||||||
@ -96,4 +96,4 @@ features = ["metadata", "serde", "internals", "decimal", "debugging"]
|
|||||||
[patch.crates-io]
|
[patch.crates-io]
|
||||||
# Notice that a custom modified version of `rustyline` is used which supports bracketed paste on Windows.
|
# Notice that a custom modified version of `rustyline` is used which supports bracketed paste on Windows.
|
||||||
# This can be moved to the official version when bracketed paste is added.
|
# This can be moved to the official version when bracketed paste is added.
|
||||||
rustyline = { git = "https://github.com/schungx/rustyline" }
|
rustyline = { git = "https://github.com/schungx/rustyline", branch = "v10" }
|
||||||
|
@ -194,7 +194,7 @@ fn setup_editor() -> Editor<()> {
|
|||||||
.indent_size(4)
|
.indent_size(4)
|
||||||
.bracketed_paste(true)
|
.bracketed_paste(true)
|
||||||
.build();
|
.build();
|
||||||
let mut rl = Editor::<()>::with_config(config);
|
let mut rl = Editor::<()>::with_config(config).unwrap();
|
||||||
|
|
||||||
// Bind more keys
|
// Bind more keys
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user