mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 02:57:47 +08:00
Clean up the last token when receiving TOK_END
This commit is contained in:
parent
39fe9fcfcd
commit
d458a8a03d
|
@ -640,6 +640,7 @@ void tok_next(tokenizer_t *tok)
|
||||||
tok->buff++;
|
tok->buff++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
tok->last_token.clear();
|
||||||
break;
|
break;
|
||||||
case L'&':
|
case L'&':
|
||||||
tok->last_type = TOK_BACKGROUND;
|
tok->last_type = TOK_BACKGROUND;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user