mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-30 07:01:22 -03:00
Replace a bunch of ASSERT_IS_MAIN_THREAD
Switch these to a new function parser.assert_can_execute(), in preparation for allowing execution off of the main thread.
This commit is contained in:
@@ -2954,6 +2954,7 @@ uint64_t reader_status_count() { return status_count; }
|
||||
/// Read interactively. Read input from stdin while providing editing facilities.
|
||||
static int read_i(parser_t &parser) {
|
||||
ASSERT_IS_MAIN_THREAD();
|
||||
parser.assert_can_execute();
|
||||
reader_config_t conf;
|
||||
conf.complete_ok = true;
|
||||
conf.highlight_ok = true;
|
||||
|
||||
Reference in New Issue
Block a user