summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2005-11-18 17:11:22 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2005-11-18 17:11:22 +0000
commit9fe5761cf3af8fa29166e171f553a20e61c17203 (patch)
tree7a47f5f9410dc441078dc8e3b071abd96bdb2612
parent32b26d8292ed92f2d5bd59e66821a73b80a71ca9 (diff)
One liner to fix doubled yank buffer issue (c-K, c-Y, M-x undo, c-Y).
-rw-r--r--usr.bin/mg/undo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/undo.c b/usr.bin/mg/undo.c
index 3938427c254..8c2836261a7 100644
--- a/usr.bin/mg/undo.c
+++ b/usr.bin/mg/undo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: undo.c,v 1.33 2005/11/12 18:48:08 kjell Exp $ */
+/* $OpenBSD: undo.c,v 1.34 2005/11/18 17:11:21 kjell Exp $ */
/*
* Copyright (c) 2002 Vincent Labrecque <vincent@openbsd.org>
* All rights reserved.
@@ -506,7 +506,7 @@ undo(int f, int n)
*/
switch (ptr->type) {
case INSERT:
- ldelete(ptr->region.r_size, KFORW);
+ ldelete(ptr->region.r_size, KNONE);
break;
case DELETE:
region_put_data(ptr->content,