Fix broken completions for "mount -ouid="

Cherry-picked from b46417c77b (Fix broken completions for "mount
-ouid=", 2024-11-21).
This commit is contained in:
Johannes Altmanninger
2024-11-21 08:55:45 +01:00
parent 4d6544591e
commit 29e69bd113

View File

@@ -134,8 +134,9 @@ function __fish_complete_mount_opts
data_err={ignore,abort} \
barrier={0,1} \
user_xattr \
acl \
set -l token (commandline -tc | string replace -r '^-o' -- '')
acl
set -l token (commandline -tc | string replace -r '^-o' -- '')
set -l args (string split , -- $token)
if test (count $args) -ne 0