mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
reader_interrupted() should only be called on the main thread. fixes #537
This commit is contained in:
parent
970d05df39
commit
c58278758c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue