Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Completion in quotes



-----BEGIN PGP SIGNED MESSAGE-----

Minor completion bug: have a buffer consisting of "''a", with the cursor
on the second "'", and press <tab>.  You get the "BUG: 0 <= wb <= cs <=
we is not true" message.

 -zefram

      Index: Src/zle_tricky.c
      ===================================================================
      RCS file: /home/zefram/usr/cvsroot/zsh/Src/zle_tricky.c,v
      retrieving revision 1.40
      diff -c -r1.40 zle_tricky.c
      *** zle_tricky.c	1996/10/03 23:33:54	1.40
      --- zle_tricky.c	1996/10/05 15:52:19
      ***************
      *** 779,785 ****
        {
            if (!line[cs] || line[cs] == '\n' ||
        	(iblank(line[cs]) && (!cs || line[cs-1] != '\\')) ||
      ! 	line[cs] == ')' || line[cs] == '`') {
        	*ptmp = (char *)line;
        	line = (unsigned char *)halloc(strlen((char *)line) + 3);
        	memcpy(line, *ptmp, cs);
      --- 779,786 ----
        {
            if (!line[cs] || line[cs] == '\n' ||
        	(iblank(line[cs]) && (!cs || line[cs-1] != '\\')) ||
      ! 	line[cs] == ')' || line[cs] == '`' ||
      ! 	line[cs] == '"' || line[cs] == '\'') {
        	*ptmp = (char *)line;
        	line = (unsigned char *)halloc(strlen((char *)line) + 3);
        	memcpy(line, *ptmp, cs);

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBMlaIU3D/+HJTpU/hAQE8rwP+Nw3VacgvK+jBVogG8ZemMHrzNxFoh7TW
F8xw4nEbCOaM/7vBbDVqin2KvHFSREtjjPwZDRKzoVtf/gqd7ohKjIfZrsNXoJ6Q
4DoAx+SGi4vcxgsbuWQAiEbnbekjH0EE20xrCsnGXi+WbYzd2qR9gRAJOWpjAspA
SrZOtNK9qCA=
=iucI
-----END PGP SIGNATURE-----



Messages sorted by: Reverse Date, Date, Thread, Author