diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2003-08-02 19:44:13 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2003-08-02 19:44:13 +0000 |
commit | 89dd1a7aeacf472d2b7eb4de61e7fb43cd548e2b (patch) | |
tree | 32e4a4db3842e256e2ac98a0365fcbda30991ab7 /bin/ksh | |
parent | 950536632811d5fff91c8ff946b539ee72fe3a47 (diff) |
don't push things unless force is true; avoid adding text again on yank-pop.
Diffstat (limited to 'bin/ksh')
-rw-r--r-- | bin/ksh/emacs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/emacs.c b/bin/ksh/emacs.c index 06834c1b033..451519b3a0f 100644 --- a/bin/ksh/emacs.c +++ b/bin/ksh/emacs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: emacs.c,v 1.21 2003/08/02 19:26:15 fgsch Exp $ */ +/* $OpenBSD: emacs.c,v 1.22 2003/08/02 19:44:12 fgsch Exp $ */ /* * Emacs-like command line editing and history @@ -554,7 +554,7 @@ x_delete(nc, force_push) /* * This lets us yank a word we have deleted. */ - if (nc > 1 || force_push) + if (force_push) x_push(nc); xep -= nc; |