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

Re: PATCH: completion tests



In article <200003011401.PAA27932@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
  Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:

> The problem was that the ec-code was output differently and for all
> other codes there was the optimisation to not print them again when we 
> already printed them and no other code since then.
> 
> The patch below should force the lc/no/rc codes to be printed again
> after we printed ec. In terms of optimisation, this is a bit unlucky,
> but since ec may contain anything, it was indeed wrong before.

Thanks.  Now comptest works better with display strings.

Z(2):akr@is27e1u11% Src/zsh -f Test/comptest -D -z Src/zsh $'flex -\t'|bin2ascii|head
line: {flex -}{}
DESCRIPTION:{option}
NO:{-+ -- generate C++ scanner class\x1B[K}
NO:{-7 -- generate 7-bit scanner\x1B[K}
NO:{-8 -- generate 8-bit scanner\x1B[K}
NO:{-B -- generate batch scanner\x1B[K}
NO:{-C -- specify degree of table compression\x1B[K}
NO:{-F -- use fast scanner table representation\x1B[K}
NO:{-I -- generate interactive scanner\x1B[K}
NO:{-L -- don't generate #line directives\x1B[K}
Z(2):akr@is27e1u11% bin2ascii /tmp/comptest.debug|head
f\bflex -<WIDGET><expand-or-complete>\r
<LBUFFER>flex -</LBUFFER>\r
<RBUFFER></RBUFFER>\r
\x1B[H\x1B[2J\x1B[m\x1B[m\x1B[m\x1B[J<PROMPT>flex -\x1B[K\r\r
<DESCRIPTION>option</DESCRIPTION>\x1B[K\r
\x1B[K\r
<LC><NO><RC>-+ -- generate C++ scanner class\x1B[K<EC>\r
\r
<LC><NO><RC>-7 -- generate 7-bit scanner\x1B[K<EC>\r
\r
Z(2):akr@is27e1u11% 

But, `\x1B[K' --- el (clear to end of line) terminfo entry --- is
printed before ec-code.
-- 
Tanaka Akira



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