Skip to content

Commit 1b882b6

Browse files
authored
Fix breakage when the stderr-nocaret feature flag is enabled. (#24)
1 parent 8d26b08 commit 1b882b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/_pisces_lookup.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ function _pisces_lookup -a pos len -d "Returns the text at the given position re
99
set input (commandline -b)
1010

1111
# NOTE: it's important to quote $input, because it may have newlines
12-
string sub --start (math "$cur + $pos + 1") --length $len -- "$input" ^/dev/null
12+
string sub --start (math "$cur + $pos + 1") --length $len -- "$input" 2>/dev/null
1313
or echo '' # if it's out of bounds (probably better to return cut part)
1414
end

0 commit comments

Comments
 (0)