diff --git a/share/functions/__fish_complete_man.fish b/share/functions/__fish_complete_man.fish index e65d61c07..a8d3daf97 100644 --- a/share/functions/__fish_complete_man.fish +++ b/share/functions/__fish_complete_man.fish @@ -10,7 +10,8 @@ function __fish_complete_man case '-**' case '*' - set section $prev[1] + set section (string escape --style=regex $prev[1]) + set section (string replace --all / \\/ $section) end set -e prev[1] end