Minor change to my previous patch: the 'U' command needs to be considered an
undo-able operation. This patch will make it so.
Signed-off-by: Jody Bruchon <[email protected]>
diff --git a/editors/vi.c b/editors/vi.c
index fdabc81..dc61a60 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -3716,8 +3716,8 @@ static void do_cmd(int c)
p = begin_line(dot);
q = end_line(dot);
#if ENABLE_FEATURE_VI_UNDO
- p = text_hole_delete(p, q, NO_UNDO); // delete cur line
- p += string_insert(p, reg[Ureg], NO_UNDO); // insert orig line
+ p = text_hole_delete(p, q, ALLOW_UNDO); // delete cur line
+ p += string_insert(p, reg[Ureg], ALLOW_UNDO_CHAIN); // insert orig line
#else
p = text_hole_delete(p, q);
p += string_insert(p, reg[Ureg]); // insert orig line
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox