- previous fix to man completion when completing on name with '.' in it,
broke completion on names with colons in them. This fixes that.
This commit is contained in:
parent
492d466148
commit
8e9c9a64f3
@ -1,6 +1,6 @@
|
||||
# bash_completion - some programmable completion functions for bash 2.05b
|
||||
#
|
||||
# $Id: bash_completion,v 1.456 2002/10/22 20:23:41 ianmacd Exp $
|
||||
# $Id: bash_completion,v 1.457 2002/10/23 15:50:04 ianmacd Exp $
|
||||
#
|
||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||
#
|
||||
@ -586,7 +586,7 @@ _man()
|
||||
COMPREPLY=( ${COMPREPLY[@]##*/?(:)} )
|
||||
# strip suffix from man pages
|
||||
COMPREPLY=( ${COMPREPLY[@]%.@(gz|bz2)} )
|
||||
COMPREPLY=( $( compgen -W '${COMPREPLY[@]%.*}' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '${COMPREPLY[@]%.*}' -- "${cur//\\\\/}" ) )
|
||||
|
||||
[[ "$prev" != [0-9ln] ]] && _filedir '[0-9ln]'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user