diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-01-21 12:00:40 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-01-21 12:00:40 +1100 |
| commit | 299e22ca7c3a976c7f2edf99f4ff248f6e4c9f85 (patch) | |
| tree | 9ab91ac81211ed0fe4a4203cf561411e3e834627 /src/client.hh | |
| parent | 43f50c0852a6f95abbcdf81f9d3bab9eeefbde0d (diff) | |
Do not block when waiting for next event if we have pending input
Handle next event should never block if we have already accumulated
input that we want to process. As we can accumulate new input in
lots of places (everytime we run a shell process for example, we
might end up reading input keys. That can be triggered during the
mode line generation which takes place during display of the window)
Fixes #1804
Diffstat (limited to 'src/client.hh')
| -rw-r--r-- | src/client.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client.hh b/src/client.hh index b12bd854..d7db0391 100644 --- a/src/client.hh +++ b/src/client.hh @@ -38,6 +38,7 @@ public: Client(Client&&) = delete; bool process_pending_inputs(); + bool has_pending_inputs() const { return not m_pending_keys.empty(); } void menu_show(Vector<DisplayLine> choices, BufferCoord anchor, MenuStyle style); void menu_select(int selected); |
