Initial Rust commit

This commit is contained in:
ridiculousfish
2023-01-14 14:56:24 -08:00
parent fb3056d7a1
commit d843b67d2d
64 changed files with 4052 additions and 767 deletions

View File

@@ -54,6 +54,7 @@
#include "exec.h"
#include "expand.h"
#include "fallback.h" // IWYU pragma: keep
#include "fd_readable_set.rs.h"
#include "fds.h"
#include "flog.h"
#include "function.h"
@@ -75,7 +76,7 @@
#include "proc.h"
#include "reader.h"
#include "screen.h"
#include "signal.h"
#include "signals.h"
#include "termsize.h"
#include "tokenizer.h"
#include "wcstringutil.h"
@@ -3362,7 +3363,7 @@ maybe_t<char_event_t> reader_data_t::read_normal_chars(readline_loop_state_t &rl
while (accumulated_chars.size() < limit) {
bool allow_commands = (accumulated_chars.empty());
auto evt = inputter.read_char(allow_commands ? normal_handler : empty_handler);
if (!event_is_normal_char(evt) || !fd_readable_set_t::poll_fd_readable(conf.in)) {
if (!event_is_normal_char(evt) || !poll_fd_readable(conf.in)) {
event_needing_handling = std::move(evt);
break;
} else if (evt.input_style == char_input_style_t::notfirst && accumulated_chars.empty() &&