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, + ); } _ => (), }