zsh-workers
 help / color / mirror / code / Atom feed
* zsh v 2.6-beta13 bug (fwd)
@ 1996-04-02  2:07 mason
  0 siblings, 0 replies; 3+ messages in thread
From: mason @ 1996-04-02  2:07 UTC (permalink / raw)
  To: zsh-list

I wrote:
::Additionally, on HP, after doing that, I can sometimes crash zsh, if I do:
::1. '~' (as described above)
::2. 'j' 'k' 'j' 'k'... (until there's a beep)
:?? You shouldn't get a beep on this sequence except when at the beginning/end
:of your history list and the beep will be on the first 'k'/'j'.  So I assume
:you mean lots of 'j's and 'k's until there's a beep (?)

Whoops. This was a dumb thing to say.  Sorry.  It's been a long time since
I've used vi for much more than quick changes to programs.  (Don't you 
sometimes wish there was cancellation for email like there is for news).

::3. 'a' (add) ' ' (any character)  (a '^Q' suddenly appears on the command line)
::4. <CTRL>-'c' (break)
::zsh: 13975 bus error  zsh -f
::On SunOS, after step 4, the shell doesn't crash but instead freezes.
:
:Even then, I couldn't replicate this second part on NetBSD.

I still couldn't replicate this second part on NetBSD.
-- 
Mason [G.C.W]  mason@werple.mira.net.au    "Hurt...Agony...Pain...LOVE-IT"



^ permalink raw reply	[flat|nested] 3+ messages in thread
* zsh v 2.6-beta13 bug (fwd)
@ 1996-04-02  1:59 mason
  1996-04-03  6:49 ` Zefram
  0 siblings, 1 reply; 3+ messages in thread
From: mason @ 1996-04-02  1:59 UTC (permalink / raw)
  To: zsh-list

:On:
:  HP-UX A.09.01 A 9000/715
:  IRIX 5.3 IP22 mips
:  SunOS 5.4 sun4d sparc
:In 'bindkey -v' mode, if I do the '~' command on an empty line,
:the cursor moves up to the first cursor of the line before the current
:line.  Instead, nothing should happen.

In viswapmode(), cs was being set to -1 (cs should always be >= 0) - should 
probably put a sanity check for this in zle_refresh.c but it may obscure
other bugs.

:Additionally, on HP, after doing that, I can sometimes crash zsh, if I do:
:1. '~' (as described above)
:2. 'j' 'k' 'j' 'k'... (until there's a beep)

?? You shouldn't get a beep on this sequence except when at the beginning/end
of your history list and the beep will be on the first 'k'/'j'.  So I assume
you mean lots of 'j's and 'k's until there's a beep (?)

:3. 'a' (add) ' ' (any character)  (a '^Q' suddenly appears on the command line)
:4. <CTRL>-'c' (break)
:zsh: 13975 bus error  zsh -f
:On SunOS, after step 4, the shell doesn't crash but instead freezes.

Even then, I couldn't replicate this second part on NetBSD.

Anyway, this should fix up the first problem.  Anyone who knows zle_vi.c
more than me (that's everyone), might want to validate this


*** zle_vi.c.bak	Tue Apr  2 11:42:26 1996
--- zle_vi.c	Tue Apr  2 11:42:26 1996
***************
*** 735,740 ****
--- 735,742 ----
      if (mult < 1)
  	return;
      eol = findeol();
+     if (cs == eol)
+ 	return;			/* empty buffer */
      while (cs < eol && mult--) {
  	if (islower(line[cs]))
  	    line[cs] = tuupper(line[cs]);


-- 
Mason [G.C.W]  mason@werple.mira.net.au    "Hurt...Agony...Pain...LOVE-IT"



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

end of thread, other threads:[~1996-04-03  7:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-04-02  2:07 zsh v 2.6-beta13 bug (fwd) mason
  -- strict thread matches above, loose matches on Subject: below --
1996-04-02  1:59 mason
1996-04-03  6:49 ` Zefram

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