Utilities/js: Make it possible to exit via two consecutive ^C's

Apparently this is common in the js repl world.
Fixes #743.
This commit is contained in:
Ali Mohammad Pur 2024-07-26 00:36:15 +02:00 committed by Sam Atkins
commit d3f089dc26
Notes: github-actions[bot] 2024-07-27 10:50:38 +00:00
5 changed files with 18 additions and 12 deletions

View file

@ -15,10 +15,6 @@
#include <sys/wait.h>
#include <unistd.h>
namespace {
constexpr u32 ctrl(char c) { return c & 0x3f; }
}
namespace Line {
Function<bool(Editor&)> Editor::find_internal_function(StringView name)