Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
(cherry picked from commit 582aaf6)
  • Loading branch information
roberth committed Jan 17, 2024
1 parent 693eed5 commit 4b37656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Options/Applicative/BashCompletion.hs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ bashCompletionQuery pinfo pprefs features ws i _ = case runCompletion compl ppre
--
-- For options and flags, ensure that the user
-- hasn't disabled them with `--`.
opt_completions :: forall a. ArgPolicy -> ArgumentReachability -> Option a -> IO [String]
opt_completions :: forall a. ArgPolicy -> ArgumentReachability -> Option a -> IO [CompletionItem]
opt_completions argPolicy reachability opt = case optMain opt of
OptReader ns _ _
| argPolicy /= AllPositionals
Expand All @@ -134,7 +134,7 @@ bashCompletionQuery pinfo pprefs features ws i _ = case runCompletion compl ppre
-> return []
BiOptReader ns _ _ _
| argPolicy /= AllPositionals
-> return . add_opt_help opt $ show_names ns
-> return . fmap legacyCompletionItem . add_opt_help opt $ show_names ns
| otherwise
-> return []
MapReader _f optr -> opt_completions argPolicy reachability (opt { optMain = optr })
Expand Down

0 comments on commit 4b37656

Please sign in to comment.