Make Event public to allow implements custom EditMode (#552)

This commit is contained in:
Clément Nerma 2023-03-15 18:28:00 +01:00 committed by GitHub
parent 35579194f7
commit 3c010ccd34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
use crate::{enums::ReedlineEvent, PromptEditMode};
use crossterm::event::Event;
pub use crossterm::event::Event;
/// Define the style of parsing for the edit events
/// Available default options:

View File

@ -4,7 +4,7 @@ mod emacs;
mod keybindings;
mod vi;
pub use base::EditMode;
pub use base::{EditMode, Event};
pub use cursors::CursorConfig;
pub use emacs::{default_emacs_keybindings, Emacs};
pub use keybindings::Keybindings;

View File

@ -259,7 +259,7 @@ pub use prompt::{
mod edit_mode;
pub use edit_mode::{
default_emacs_keybindings, default_vi_insert_keybindings, default_vi_normal_keybindings,
CursorConfig, EditMode, Emacs, Keybindings, Vi,
CursorConfig, EditMode, Emacs, Event, Keybindings, Vi,
};
mod highlighter;