On 6/17/06, Martin Schaffstall <martin.schaffstall at googlemail.com> wrote:
> On 6/16/06, Glenn Fowler <gsf at research.att.com> wrote:
> >
> > changes and notes:
> > (2) tab-tab as requested plus tab-tab-#-tab to disambiguate from list
>
> Yes, this works now very well - with the sole exception that tab-tab
> in an empty area still inserts two tab characters instead of a list of
> choices in the current directory :-(

The following patch adds this function:
---------------------------------------------------------------
diff -u -r original/src/cmd/ksh93/edit/emacs.c src/cmd/ksh93/edit/emacs.c
--- original/src/cmd/ksh93/edit/emacs.c 2006-06-06 00:02:44.000000000 +0200
+++ src/cmd/ksh93/edit/emacs.c  2006-06-17 20:34:08.000000000 +0200
@@ -329,7 +329,9 @@
                        continue;
  #endif /* u370 */
                case '\t':
+/*
                        if(cur>0 && cur>=eol && out[cur-1]!='\t' &&
out[cur-1]!=' ' && ep->ed->sh->nextprompt)
+*/
                        {
                                if(ep->ed->e_tabcount==0)
                                {
---------------------------------------------------------------
This is just a preliminary version but it shows how it should be working...
-- 
     //   Martin Schaffstall
    //    EMail: martin.schaffstall at googlemail.com
\\ //
 \X/

Reply via email to