From b6b75c8e8dcf6eabeb4f6b17b443f6bfe7952606 Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Tue, 12 Oct 2021 22:20:09 +0100 Subject: [PATCH] fix completion resolve --- core/src/app.rs | 4 ---- core/src/editor.rs | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/core/src/app.rs b/core/src/app.rs index 24bb61ff..4f417f6a 100644 --- a/core/src/app.rs +++ b/core/src/app.rs @@ -4,7 +4,6 @@ use crate::{ data::{watch_settings, LapceData, LapceWindowLens}, - terminal::Terminal, window::LapceWindowNew, }; @@ -20,9 +19,6 @@ fn build_window(data: &LapceData) -> impl Widget { } pub fn lanuch() { - let terminal = Terminal::new(); - terminal.insert("ls\n"); - let mut data = LapceData::load(); let root = build_window(&data); let window = WindowDesc::new(root) diff --git a/core/src/editor.rs b/core/src/editor.rs index a227427d..2eb03bb6 100644 --- a/core/src/editor.rs +++ b/core/src/editor.rs @@ -3058,6 +3058,11 @@ fn event( &mut editor_data, env, ); + data.update_from_editor_buffer_data( + editor_data, + &editor, + &buffer, + ); } _ => (), }