summaryrefslogtreecommitdiffstats
path: root/bin/ksh/emacs.c
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2003-08-02 19:44:12 +0000
committerfgsch <fgsch@openbsd.org>2003-08-02 19:44:12 +0000
commitc32a2711baf6a2a5b8920b2b2356cfae61f165fc (patch)
treedc55b5c1672044b4d16a366fe8f25682c85c2979 /bin/ksh/emacs.c
parentOn ESC-y ESC-y (yank-pop), also check that there is something to (diff)
downloadwireguard-openbsd-c32a2711baf6a2a5b8920b2b2356cfae61f165fc.tar.xz
wireguard-openbsd-c32a2711baf6a2a5b8920b2b2356cfae61f165fc.zip
don't push things unless force is true; avoid adding text again on yank-pop.
Diffstat (limited to 'bin/ksh/emacs.c')
-rw-r--r--bin/ksh/emacs.c4
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;