summaryrefslogtreecommitdiff
path: root/cmdbuf.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2011-05-09 18:30:23 +0000
committerXin LI <delphij@FreeBSD.org>2011-05-09 18:30:23 +0000
commited915d8294a373813108148f47b424e1152e4a5d (patch)
tree345f36f8a19a9fdb66be9a0a5676b2c0abc67bae /cmdbuf.c
parentf4cb5a505fa28e14d4b01e5c934bcf965a1822b6 (diff)
Diffstat (limited to 'cmdbuf.c')
-rw-r--r--cmdbuf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmdbuf.c b/cmdbuf.c
index fea9da355ca78..74a74ffe9b103 100644
--- a/cmdbuf.c
+++ b/cmdbuf.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2009 Mark Nudelman
+ * Copyright (C) 1984-2011 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
@@ -857,6 +857,10 @@ cmd_edit(c)
case EC_LINEKILL:
not_in_completion();
return (cmd_kill());
+ case EC_ABORT:
+ not_in_completion();
+ (void) cmd_kill();
+ return (CC_QUIT);
case EC_W_BACKSPACE:
not_in_completion();
return (cmd_werase());