Commit a2d04551 authored by stratact's avatar stratact Committed by GitHub

Merge branch 'master' into master

parents d6530865 84501ef9
[package]
name = "liner"
version = "0.4.3" # remember to update README
version = "0.4.5" # remember to update README
authors = ["MovingtoMars <definitelynotliam@gmail.com>"]
description = "A library offering readline-like functionality."
repository = "https://github.com/MovingtoMars/liner"
homepage = "https://github.com/MovingtoMars/liner"
repository = "https://github.com/redox-os/liner"
homepage = "https://github.com/redox-os/liner"
keywords = ["readline", "line", "input", "editor", "completion"]
license = "MIT"
exclude = [
......
......@@ -20,7 +20,7 @@ A Rust library offering readline-like functionality.
In `Cargo.toml`:
```toml
[dependencies]
liner = "0.4.3"
liner = "0.4.5"
...
```
......
......@@ -96,8 +96,8 @@ impl Context {
buffer: B,
) -> io::Result<String> {
let res = {
let stdout = stdout().into_raw_mode().unwrap();
let ed = try!(Editor::new_with_init_buffer(stdout, prompt, f, self, buffer));
let stdout = stdout().into_raw_mode()?;
let ed = Editor::new_with_init_buffer(stdout, prompt, f, self, buffer)?;
match self.key_bindings {
KeyBindings::Emacs => Self::handle_keys(keymap::Emacs::new(ed), handler),
KeyBindings::Vi => Self::handle_keys(keymap::Vi::new(ed), handler),
......
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