Hi,

I just received the following message from ncmpc's upstream, which
states that the patch to implement TAB completion for cursesw has been
incorporated into his repository.

As he also has merged others of Debian's patches, I'd rather invest
some more time in packaging and testing a later snapshot from upstream
rather than uploading and maintaining Debian's patches seperately.

So, a little bit more patience, please. ;-)

    René

Attachment: pgpg72LkRNle5.pgp
Description: PGP signature

--- Begin Message ---
The svn version now includes your patch.

Thanks,
Kalle


René van Bevern skrev:
> tags 357660 patch pending
> thanks
>
> Hello,
>
> attached is a patch that implements the lacking TAB completion support
> in ncmpc for wreadln.c when compiled with libncursesw support.
>
> An upload fixing this issue for the Debian package is supposed to be
> done within the next days.
>
> Regards,
>         René
>
>   
> ------------------------------------------------------------------------
>
> --- src/wreadln.c     2006-01-22 23:41:03.000000000 +0100
> +++ /home/rvb/wreadln.c       2006-03-24 14:57:51.000000000 +0100
> @@ -586,6 +588,36 @@
>           case KEY_CTRL_E:
>             cursor_move_to_eol();
>             break;
> +
> +         case TAB:
> +           if( gcmp )
> +             {
> +               char *prefix = NULL;
> +               GList *list;
> +
> +               i = wcstombs(NULL,wline,0)+1;
> +               mbline = g_malloc0(i);
> +               wcstombs(mbline, wline, i);
> +               
> +               if(wrln_pre_completion_callback)
> +                 wrln_pre_completion_callback(gcmp, mbline);
> +               list = g_completion_complete(gcmp, mbline, &prefix);        
> +               if( prefix )
> +                 {
> +                   mbstowcs(wline, prefix, wrln_max_line_size);
> +                   cursor_move_to_eol();
> +                   g_free(prefix);
> +                 }
> +               else
> +                 screen_bell();
> +               if( wrln_post_completion_callback )
> +                 wrln_post_completion_callback(gcmp, mbline, list);
> +
> +               g_free(mbline);
> +             }
> +           break;
> +
> +
>           case KEY_CTRL_G:
>             screen_bell();
>             g_free(wline);
>   



--- End Message ---

Reply via email to