zsh-workers
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayne@clari.net>
To: zsh-workers@math.gatech.edu
Subject: PATCH: fix spaceinline() to fix yank (3.0.5 & 3.1.2)
Date: Tue, 12 May 1998 11:43:48 -0700	[thread overview]
Message-ID: <199805121843.LAA09876@bebop.clari.net> (raw)

This is a patch for 3.0.5 that also needs to be applied to
3.1.2-zephram4 (though it will be offset by 30 lines or so).  It
fixes an annoying bug in yank where the mark gets set to the end of
the yanked text rather than the beginning.  The root cause of the
bug is that spaceinline() is moving the mark when "mark >= cs",
instead of just "mark > cs".

..wayne..

---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Index: zle_utils.c
@@ -56,7 +56,7 @@
     ll += ct;
     line[ll] = '\0';
 
-    if (mark >= cs)
+    if (mark > cs)
 	mark += ct;
 }
 
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---


                 reply	other threads:[~1998-05-12 18:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199805121843.LAA09876@bebop.clari.net \
    --to=wayne@clari.net \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).