From f2ccb2c6ee50f8e7f473f133fd6f8d83534a314f Mon Sep 17 00:00:00 2001 From: daa84 Date: Tue, 28 Feb 2017 11:53:56 +0300 Subject: [PATCH] Remove fix for old nvim --- src/nvim.rs | 4 +--- src/ui.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/nvim.rs b/src/nvim.rs index 57bf266..c11857e 100644 --- a/src/nvim.rs +++ b/src/nvim.rs @@ -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(()) diff --git a/src/ui.rs b/src/ui.rs index fd129cd..3f9cc49 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -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, }