mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Stringify hg completions
This commit is contained in:
parent
044d45a0ff
commit
c06a71bfbe
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ end
|
|||
function __fish_hg_help_topics
|
||||
set -l commands (__fish_hg debugcomplete)
|
||||
printf "%s\tcommand\n" $commands
|
||||
for line in (__fish_hg help | grep "^ [a-zA-Z]")
|
||||
for line in (__fish_hg help | string match -re '^ [a-zA-Z]')
|
||||
set -l parts (string trim $line | string split " " -m 1)
|
||||
set -l topic $parts[1]
|
||||
if not contains $topic $commands
|
||||
|
|
Loading…
Reference in a new issue