diff options
| author | christos <christos@NetBSD.org> | 2003-11-02 20:07:58 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2003-11-02 20:07:58 +0000 |
| commit | 72dc1c2ac96a0930d4db03ae625556ef15104f74 (patch) | |
| tree | c701a18b3889cd71f721301dd9fa7f3daaec4e1c /lib | |
| parent | d67d488ee21740f2acaaa276f1496bbd5d52744f (diff) | |
If the kill buffer is empty return normal. From Gerry Swislow gerry at certif
dot com
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libedit/emacs.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libedit/emacs.c b/lib/libedit/emacs.c index 495750f7bbe..d5a28d728d4 100644 --- a/lib/libedit/emacs.c +++ b/lib/libedit/emacs.c @@ -1,4 +1,4 @@ -/* $NetBSD: emacs.c,v 1.15 2003/08/07 16:44:31 agc Exp $ */ +/* $NetBSD: emacs.c,v 1.16 2003/11/02 20:07:58 christos Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)emacs.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: emacs.c,v 1.15 2003/08/07 16:44:31 agc Exp $"); +__RCSID("$NetBSD: emacs.c,v 1.16 2003/11/02 20:07:58 christos Exp $"); #endif #endif /* not lint && not SCCSID */ @@ -119,10 +119,8 @@ em_yank(EditLine *el, int c __attribute__((__unused__))) { char *kp, *cp; - if (el->el_chared.c_kill.last == el->el_chared.c_kill.buf) { - if (!ch_enlargebufs(el, 1)) - return (CC_ERROR); - } + if (el->el_chared.c_kill.last == el->el_chared.c_kill.buf) + return (CC_NORM); if (el->el_line.lastchar + (el->el_chared.c_kill.last - el->el_chared.c_kill.buf) >= |
