mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
LibLine: Setup the keybindings after initialisation
This makes the keybindings that depend on `m_termios` (^W, ^U, etc) work.
This commit is contained in:
parent
a698a58d3c
commit
bda1d7fd7b
1 changed files with 5 additions and 5 deletions
|
@ -163,11 +163,6 @@ Editor::Editor(Configuration configuration)
|
||||||
m_pending_chars = ByteBuffer::create_uninitialized(0);
|
m_pending_chars = ByteBuffer::create_uninitialized(0);
|
||||||
get_terminal_size();
|
get_terminal_size();
|
||||||
m_suggestion_display = make<XtermSuggestionDisplay>(m_num_lines, m_num_columns);
|
m_suggestion_display = make<XtermSuggestionDisplay>(m_num_lines, m_num_columns);
|
||||||
|
|
||||||
set_default_keybinds();
|
|
||||||
|
|
||||||
for (auto& keybind : m_configuration.keybindings)
|
|
||||||
register_key_input_callback(keybind);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Editor::~Editor()
|
Editor::~Editor()
|
||||||
|
@ -404,6 +399,11 @@ void Editor::initialize()
|
||||||
}
|
}
|
||||||
|
|
||||||
m_termios = termios;
|
m_termios = termios;
|
||||||
|
|
||||||
|
set_default_keybinds();
|
||||||
|
for (auto& keybind : m_configuration.keybindings)
|
||||||
|
register_key_input_callback(keybind);
|
||||||
|
|
||||||
m_initialized = true;
|
m_initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue