diff --git a/src/bridge/ui_commands.rs b/src/bridge/ui_commands.rs index eb76ab9..9e51fb5 100644 --- a/src/bridge/ui_commands.rs +++ b/src/bridge/ui_commands.rs @@ -21,7 +21,7 @@ pub enum UiCommand { Drag(u32, u32), FocusLost, FocusGained, - Quit + Quit, } impl UiCommand { @@ -62,8 +62,7 @@ impl UiCommand { .await .expect("Focus Gained Failed"), UiCommand::Quit => { - nvim.command("qa!") - .await.ok(); // Ignoring result as it won't succeed since the app closed. + nvim.command("qa!").await.ok(); // Ignoring result as it won't succeed since the app closed. } } } diff --git a/src/window.rs b/src/window.rs index c0e3f4c..dff20d0 100644 --- a/src/window.rs +++ b/src/window.rs @@ -391,7 +391,10 @@ pub fn ui_loop() { for event in event_pump.poll_iter() { match event { Event::Quit { .. } => window.handle_quit(), - Event::KeyDown { keycode: received_keycode, .. } => { + Event::KeyDown { + keycode: received_keycode, + .. + } => { keycode = received_keycode; } Event::TextInput { text, .. } => keytext = Some(text),