Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/ksh Push (into yank buffer) words only if force_push is ...



details:   https://anonhg.NetBSD.org/src/rev/a32577373302
branches:  trunk
changeset: 550951:a32577373302
user:      wiz <wiz%NetBSD.org@localhost>
date:      Tue Aug 26 09:06:50 2003 +0000

description:
Push (into yank buffer) words only if force_push is TRUE;
set force_push to TRUE in x_del_bword and x_del_fword.
Fixes behaviour where <meta-y> would put the previously yanked word in the yank buffer another time.

diffstat:

 bin/ksh/emacs.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 42c5958448a8 -r a32577373302 bin/ksh/emacs.c
--- a/bin/ksh/emacs.c   Tue Aug 26 08:52:03 2003 +0000
+++ b/bin/ksh/emacs.c   Tue Aug 26 09:06:50 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: emacs.c,v 1.20 2003/08/26 08:52:03 wiz Exp $   */
+/*     $NetBSD: emacs.c,v 1.21 2003/08/26 09:06:50 wiz Exp $   */
 
 /*
  *  Emacs-like command line editing and history
@@ -10,7 +10,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: emacs.c,v 1.20 2003/08/26 08:52:03 wiz Exp $");
+__RCSID("$NetBSD: emacs.c,v 1.21 2003/08/26 09:06:50 wiz Exp $");
 #endif
 
 
@@ -558,7 +558,7 @@
        /*
         * This lets us yank a word we have deleted.
         */
-       if (nc > 0 || force_push)
+       if (force_push)
                x_push(nc);
 
        xep -= nc;
@@ -599,7 +599,7 @@
 x_del_bword(c)
        int c;
 {
-       x_delete(x_bword(), FALSE);
+       x_delete(x_bword(), TRUE);
        return KSTD;
 }
 
@@ -623,7 +623,7 @@
 x_del_fword(c)
        int c;
 {
-       x_delete(x_fword(), FALSE);
+       x_delete(x_fword(), TRUE);
        return KSTD;
 }
 



Home | Main Index | Thread Index | Old Index