mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 03:50:24 +08:00
reader_interrupted() should only be called on the main thread. fixes #537
This commit is contained in:
parent
970d05df39
commit
c58278758c
@ -728,7 +728,7 @@ static int wildcard_expand_internal(const wchar_t *wc,
|
||||
|
||||
// debug( 3, L"WILDCARD_EXPAND %ls in %ls", wc, base_dir );
|
||||
|
||||
if (reader_interrupted())
|
||||
if (is_main_thread() && reader_interrupted())
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user