zsh-workers
 help / color / mirror / code / Atom feed
* vi mode weird when editing previous history entries
@ 1996-11-19 20:58 Thorsten Meinecke
  0 siblings, 0 replies; only message in thread
From: Thorsten Meinecke @ 1996-11-19 20:58 UTC (permalink / raw)
  To: zsh-workers

This bug is around a little longer, I've seen it in zsh-3.0.0 too.
The effect of it is twofold (maybe there are two separate bugs in-
stead):
- it either zaps the current buffer (after movement commands) or
- it dumps core when attempting deletions with certain movements
  commands.

To reproduce it, you'll need a none-empty history.  Scroll up into
an old history entry, say with up-history (or other history key
commands -- `!' and expand-or-complete won't do), enter vi-cmd-mode
and do vi-set-mark, optionally followed by movements and then do
vi-goto-mark.  Key order:

  vi-cmd-mode               ^[
  up-history                ^P
  vi-set-mark               ma
  vi-goto-mark              `a

The current buffer: is gone.  Doesn't happen when editing a new
buffer freshly filled by typing or one filled by bang expansion.

Now try to vi-delete with vi-goto-mark as movement command.  NOT!
There is at least one similar sequence that violates segmentation:

  up-line-or-history        ^[[A (bound to a cursor key)
  vi-cmd-mode               ^[
  vi-delete                 d
  end-of-buffer-or-history  \M-x end-of-buffer-or-history

I don't think it's something system-specific.  Regards,
--Thorsten


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

only message in thread, other threads:[~1996-11-19 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-11-19 20:58 vi mode weird when editing previous history entries Thorsten Meinecke

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