diff --git a/functions/config_help.fish b/functions/config_help.fish index 814a6a9..ff90028 100644 --- a/functions/config_help.fish +++ b/functions/config_help.fish @@ -42,8 +42,9 @@ function config_help --description 'Open the offline fish shell configuration ma set -l norm_kw (string lower -- $argv[1] | string replace -ra '[^a-z0-9]' '') set -l found "" for entry in (grep -n "^#" "$doc_file") - set -l lnum (string split -f 1 ':' -- $entry) - set -l text (string split -f 2- ':' -- $entry) + set -l parts (string split -m 1 ':' -- $entry) + set -l lnum $parts[1] + set -l text $parts[2] set -l norm_text (string lower -- $text | string replace -ra '[^a-z0-9]' '') if string match -q "*$norm_kw*" $norm_text set found $lnum