zsh-workers
 help / color / mirror / code / Atom feed
* cursor positioning with compleiton
@ 1999-09-16 19:11 Tanaka Akira
  0 siblings, 0 replies; 2+ messages in thread
From: Tanaka Akira @ 1999-09-16 19:11 UTC (permalink / raw)
  To: zsh-workers

I found a problem with cursor positioning with compleiton.

Z(2):akr@is27e1u11% Src/zsh -f
is27e1u11% bindkey -e; fpath=($PWD/Completion/*(/)); autoload -U compinit; compinit -D; compdef _tst tst
is27e1u11% compconf group_matches=yes message_format='%d' description_format='%d' describe_options=yes
is27e1u11% _tst () { _arguments -s '-a[aaa]' '-b[bbb]' }
is27e1u11% tst -<TAB>
option
-a -- aaa
-b -- bbb

After this, the cursor are positioned in the line to define `_tst'.
-- 
Tanaka Akira


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cursor positioning with compleiton
@ 1999-09-17  7:45 Sven Wischnowsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 1999-09-17  7:45 UTC (permalink / raw)
  To: zsh-workers


Tanaka Akira wrote:

> I found a problem with cursor positioning with compleiton.
> 
> Z(2):akr@is27e1u11% Src/zsh -f
> is27e1u11% bindkey -e; fpath=($PWD/Completion/*(/)); autoload -U compinit; compinit -D; compdef _tst tst
> is27e1u11% compconf group_matches=yes message_format='%d' description_format='%d' describe_options=yes
> is27e1u11% _tst () { _arguments -s '-a[aaa]' '-b[bbb]' }
> is27e1u11% tst -<TAB>
> option
> -a -- aaa
> -b -- bbb
> 
> After this, the cursor are positioned in the line to define `_tst'.

So you don't use `complist'?

Bye
 Sven

diff -u os/Zle/zle_tricky.c Src/Zle/zle_tricky.c
--- os/Zle/zle_tricky.c	Thu Sep 16 14:21:20 1999
+++ Src/Zle/zle_tricky.c	Fri Sep 17 09:43:51 1999
@@ -8333,7 +8333,7 @@
     longest += 2 + of;
     if ((ncols = columns / longest)) {
 	for (g = amatches; g; g = g->next)
-	    nlines += (g->lcount + ncols - 1) / ncols;
+	    nlines += (g->lcount - g->llcount + ncols - 1) / ncols;
     } else {
 	ncols = 1;
 	opl = 1;

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-09-17  7:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-16 19:11 cursor positioning with compleiton Tanaka Akira
1999-09-17  7:45 Sven Wischnowsky

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).