This commit is contained in:
Aaron Gyes 2022-08-02 00:54:38 -07:00
parent ff2999ef2b
commit e45b3abab2
2 changed files with 3 additions and 3 deletions

View file

@ -23,11 +23,11 @@ function __fish_parse_configure
# Just fish's `./configure --help` takes ~350ms to run, before parsing
# The following chain attempts to extract the help message:
cat $argv[1] | tr \n \u0e | sed -n 's/.*Report the --help message\(.*\?\)ac_status.*/\1/; s/ac_status.*//p' | tr \u0e \n |
while test "$next_line" != "" || read -lL next_line
while test -n "$next_line" || read -lL next_line
# In autoconfigure scripts, the first column wraps at 26 chars
# echo next_line: $next_line
# echo old_line: $line
if test "$line" = ""
if test -z "$line"
set line $next_line
set next_line "" # mark it as consumed
continue

View file

@ -58,7 +58,7 @@ function __fish_complete_npm -d "Complete the commandline using npm's 'completio
set -lx COMP_POINT (commandline -C)
# If the cursor is after the last word, the empty token will disappear in the expansion
# Readd it
if test (commandline -ct) = ""
if test -z (commandline -ct)
set COMP_CWORD (math $COMP_CWORD + 1)
set COMP_LINE $COMP_LINE ""
end