1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-25 20:41:49 +03:00

remove unneeded code in client

This commit is contained in:
Maxime Coste 2013-10-26 11:49:16 +01:00
parent 6093c43e40
commit ebd768e03d

View File

@ -39,7 +39,7 @@ public:
Insertion& last_insert() { return m_client.m_last_insert; }
protected:
InputMode& reset_normal_mode();
void reset_normal_mode();
private:
Client& m_client;
};
@ -850,9 +850,6 @@ public:
void on_key(Key key) override
{
if (&context().editor() != &m_inserter.editor())
return reset_normal_mode().on_key(key);
last_insert().second.push_back(key);
if (m_mode == Mode::InsertReg)
{
@ -954,10 +951,9 @@ private:
}
InputMode& InputMode::reset_normal_mode()
void InputMode::reset_normal_mode()
{
m_client.reset_normal_mode();
return *m_client.m_mode;
}
Client::Client(std::unique_ptr<UserInterface>&& ui, Editor& editor, String name)