mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
Don't expand jobs during syntax highlighting
Fixes https://github.com/fish-shell/fish-shell/issues/366
This commit is contained in:
parent
768f92303e
commit
7c09a767b6
1 changed files with 1 additions and 1 deletions
|
@ -983,7 +983,7 @@ static void tokenize( const wchar_t * const buff, std::vector<int> &color, const
|
||||||
Command. First check that the command actually exists.
|
Command. First check that the command actually exists.
|
||||||
*/
|
*/
|
||||||
cmd = tok_last( &tok );
|
cmd = tok_last( &tok );
|
||||||
bool expanded = expand_one(cmd, EXPAND_SKIP_CMDSUBST | EXPAND_SKIP_VARIABLES);
|
bool expanded = expand_one(cmd, EXPAND_SKIP_CMDSUBST | EXPAND_SKIP_VARIABLES | EXPAND_SKIP_JOBS);
|
||||||
if (! expanded || has_expand_reserved(cmd.c_str()))
|
if (! expanded || has_expand_reserved(cmd.c_str()))
|
||||||
{
|
{
|
||||||
color.at(tok_get_pos( &tok )) = HIGHLIGHT_ERROR;
|
color.at(tok_get_pos( &tok )) = HIGHLIGHT_ERROR;
|
||||||
|
|
Loading…
Reference in a new issue