zsh-users
 help / color / mirror / code / Atom feed
* all-matches with a suffix
@ 2001-08-13 19:25 martin.ebourne
  0 siblings, 0 replies; only message in thread
From: martin.ebourne @ 2001-08-13 19:25 UTC (permalink / raw)
  To: zsh-users


Hi,

Using the all-matches completer during SQL completion is giving me
corrupted results. ie.

    select * from sysusers

If I do all-matches immediately after the * I get:

    select environ f gidro namem  suidsy uid, susers

I've tracked it down to the -r (or -q) option to compadd. The completions
are added as:

    compadd -S ", " -r ", \t\n\-" -a _sql_columns

This is so that when you complete a column name normally in the select list
it appends a comma and a space, but if you type comma or space it removes
it again.

If I remove the -r then I get the much better:

    select environ,  gid,  name,  suid,  uid,  from sysusers

Presumably if the -r was in still, then typing space would remove that last
comma?

Any idea what's up?

(Zsh 4.0.2)

Cheers,

Martin.




This e-mail message is CONFIDENTIAL and may contain legally privileged
information.  If you are not the intended recipient you should not  read,
copy, distribute, disclose or otherwise use the information in this e-mail.
Please also telephone or fax us immediately and delete the message from
your system.  E-mail may be susceptible to data corruption, interception
and unauthorised amendment, and we do not accept liability for any such
corruption, interception or amendment or the consequences thereof.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-08-13 19:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-13 19:25 all-matches with a suffix martin.ebourne

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).