mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Fix tab completion after '%' character.
This commit is contained in:
parent
53fc9a4002
commit
bf86a92596
1 changed files with 6 additions and 2 deletions
|
@ -590,8 +590,12 @@ static int find_job(const struct find_job_data_t *info)
|
||||||
|
|
||||||
const job_t *j;
|
const job_t *j;
|
||||||
int found = 0;
|
int found = 0;
|
||||||
// do the empty param check first, because an empty string passes our 'numeric' check
|
// If we are not doing tab completion, we first check for the single '%'
|
||||||
if (wcslen(proc)==0)
|
// character, because an empty string will pass the numeric check below.
|
||||||
|
// But if we are doing tab completion, we want all of the job IDs as
|
||||||
|
// completion options, not just the last job backgrounded, so we pass this
|
||||||
|
// first block in favor of the second.
|
||||||
|
if (wcslen(proc)==0 && !(flags & EXPAND_FOR_COMPLETIONS))
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
This is an empty job expansion: '%'
|
This is an empty job expansion: '%'
|
||||||
|
|
Loading…
Reference in a new issue