Remove fix for old nvim

This commit is contained in:
daa84 2017-02-28 11:53:56 +03:00
parent fa31e8b0b0
commit f2ccb2c6ee
2 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,4 @@
use neovim_lib::{Neovim, NeovimApi, Session, Value, Integer};
use neovim_lib::{Neovim, Session, Value, Integer};
use std::io::{Result, Error, ErrorKind};
use std::result;
use std::collections::HashMap;
@ -73,8 +73,6 @@ pub fn initialize(ui: &mut Ui) -> Result<()> {
let mut nvim = ui.nvim();
nvim.session.start_event_loop_cb(move |m, p| nvim_cb(m, p));
// fix neovim --embed bug to start embed mode
nvim.input("i").unwrap();
nvim.ui_attach(80, 24, true).map_err(|e| Error::new(ErrorKind::Other, e))?;
Ok(())

View File

@ -71,7 +71,7 @@ impl Ui {
line_height: None,
char_width: None,
resize_timer: None,
mode: NvimMode::Insert,
mode: NvimMode::Normal,
mouse_enabled: false,
mouse_pressed: false,
}