parent
34be6c42e7
commit
54d540021c
|
@ -208,7 +208,7 @@ public:
|
||||||
|
|
||||||
if (m_mouse_handler.handle_key(key, context()))
|
if (m_mouse_handler.handle_key(key, context()))
|
||||||
m_idle_timer.set_next_date(Clock::now() + get_idle_timeout(context()));
|
m_idle_timer.set_next_date(Clock::now() + get_idle_timeout(context()));
|
||||||
if (cp and isdigit(*cp))
|
else if (cp and isdigit(*cp))
|
||||||
{
|
{
|
||||||
int new_val = m_params.count * 10 + *cp - '0';
|
int new_val = m_params.count * 10 + *cp - '0';
|
||||||
if (new_val < 0)
|
if (new_val < 0)
|
||||||
|
@ -1021,7 +1021,9 @@ public:
|
||||||
|
|
||||||
bool update_completions = true;
|
bool update_completions = true;
|
||||||
bool moved = false;
|
bool moved = false;
|
||||||
if (key == Key::Escape or key == ctrl('c'))
|
if (m_mouse_handler.handle_key(key, context()))
|
||||||
|
m_idle_timer.set_next_date(Clock::now() + get_idle_timeout(context()));
|
||||||
|
else if (key == Key::Escape or key == ctrl('c'))
|
||||||
{
|
{
|
||||||
if (m_in_end)
|
if (m_in_end)
|
||||||
throw runtime_error("Asked to exit insert mode while running InsertEnd hook");
|
throw runtime_error("Asked to exit insert mode while running InsertEnd hook");
|
||||||
|
@ -1285,6 +1287,7 @@ private:
|
||||||
bool m_autoshowcompl;
|
bool m_autoshowcompl;
|
||||||
Timer m_idle_timer;
|
Timer m_idle_timer;
|
||||||
bool m_in_end = false;
|
bool m_in_end = false;
|
||||||
|
MouseHandler m_mouse_handler;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user