linenoise
linenoise copied to clipboard
Fix the subsequent two ignored key hits after escaping from completion mode.
Do not trigger ESC sequence handler after hit ESC key to "escape" completion mode.
In completion, when you hit ESC to go back in original buffer, the ESC is further passed to linenoiseEdit() switch handler, and this ESC will trigger a "escape sequence" so that the next sequence of keys (usually the next two hits) will be "swallowed" unexpectedly.