Commit 75790748 authored by AdminXVII's avatar AdminXVII

Merge branch 'no-global-buffer' into 'master'

Remove the global buffer and instead a context-specific one

See merge request redox-os/liner!20
parents 93134beb 85a3aae0
Pipeline #4511 passed with stage
in 2 minutes and 4 seconds
......@@ -19,6 +19,7 @@ name = "liner"
bytecount = "0.3.1"
termion = { git = "https://gitlab.redox-os.org/redox-os/termion" }
unicode-width = "0.1.*"
itertools = "*"
[dev-dependencies]
regex = "1.0.0"
......@@ -50,6 +50,7 @@ pub struct Context {
pub history: History,
pub word_divider_fn: Box<Fn(&Buffer) -> Vec<(usize, usize)>>,
pub key_bindings: KeyBindings,
pub buf: String,
}
impl Context {
......@@ -58,6 +59,7 @@ impl Context {
history: History::new(),
word_divider_fn: Box::new(get_buffer_words),
key_bindings: KeyBindings::Emacs,
buf: String::with_capacity(512),
}
}
......
This diff is collapsed.
extern crate bytecount;
extern crate itertools;
extern crate termion;
extern crate unicode_width;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment