pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/54888: ast-ksh vi tabcomplete fails when expanding a path that contains single child



>Number:         54888
>Category:       pkg
>Synopsis:       ast-ksh vi tabcomplete fails when expanding a path that contains single child
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 24 02:05:00 +0000 2020
>Originator:     Shingo NISHIOKA
>Release:        pkgsrc-2019Q4
>Organization:
>Environment:
NetBSD - 8.1_STABLE NetBSD 8.1_STABLE (GENERIC) #1: Sat Dec 14 12:56:00 JST 2019  -@-:/var/users/sys/build/amd64/obj/sys/arch/amd64/compile/GENERIC amd64      

>Description:
ast-ksh vi tabcomplete fails when expanding a path that contains single child

>How-To-Repeat:
$ ksh
$ set -o vi
$ mkdir -p /tmp/i/j
$ ls /tmp/i <tab> <tab>


>Fix:
diff -ru src/cmd/ksh93/edit/vi.c src/cmd/ksh93/edit/vi.c
--- src/cmd/ksh93/edit/vi.c     2012-07-07 00:26:06.000000000 +0900
+++ src/cmd/ksh93/edit/vi.c     2020-01-16 15:52:40.000000000 +0900
@@ -2433,7 +2433,7 @@
                        last_virt = i;
                        ed_ringbell();
                }
-               else if((c=='=' || (c=='\\'&&virtual[i]=='/')) && !vp->repeat_set)
+               else if((c=='=' || (c=='\\'&&virtual[i]=='/'&&i==cur_virt)) && !vp->repeat_set)
                {
                        last_virt = i;
                        vp->nonewline++;


Home | Main Index | Thread Index | Old Index