Try to fix resize issue #58

Some time during initialization phase configure event come and don't
processed.
This commit is contained in:
daa 2018-02-17 16:57:57 +03:00
parent 14319b58cf
commit 8bf342ec7f

View File

@ -835,6 +835,9 @@ fn set_nvim_initialized(state_arc: Arc<UiMutex<State>>) {
let mut state = state_arc.borrow_mut();
state.nvim.async_to_sync();
state.nvim.set_initialized();
// in some case resize can happens while initilization in progress
// so force resize here
state.try_nvim_resize();
state.cursor.as_mut().unwrap().start();
Continue(false)