Fix a regression introduced in aa6f7c82
.
The regular expression changed, and returned the wrong page number to the command completion.
This commit is contained in:
parent
eba673e7f5
commit
925d41f596
|
@ -38,7 +38,7 @@ def -params .. \
|
|||
prefix=${1:0:${kak_pos_in_token}}
|
||||
for page in /usr/share/man/*/${prefix}*.[1-8]*; do
|
||||
candidate=$(basename ${page%%.[1-8]*})
|
||||
pagenum=$(echo $page | sed 's/^.*\([1-8][a-z]*\)$/\1/')
|
||||
pagenum=$(echo $page | sed -r 's,^.+/.+\.([1-8][^.]*)\..+$,\1,')
|
||||
case $candidate in
|
||||
*\*) ;;
|
||||
*) echo $candidate\($pagenum\);;
|
||||
|
|
Loading…
Reference in New Issue
Block a user