diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2008-09-15 16:13:36 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2008-09-15 16:13:36 +0000 |
commit | 46afcbd52cae880b9a7eb20df81241e1f99a64cb (patch) | |
tree | e7f8293c9d96e318bdccb005f328c5824f50f1d8 /usr.bin/mg/paragraph.c | |
parent | 0b98546c7b94e0858d8daad1b96091ba91734f4b (diff) |
Expose the undo commands as proper mg functions.
This should have no functional change on undo, but it does facilitate
testing undo behavior.
Diffstat (limited to 'usr.bin/mg/paragraph.c')
-rw-r--r-- | usr.bin/mg/paragraph.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/mg/paragraph.c b/usr.bin/mg/paragraph.c index a4378977a22..0ef46bd38d5 100644 --- a/usr.bin/mg/paragraph.c +++ b/usr.bin/mg/paragraph.c @@ -1,4 +1,4 @@ -/* $OpenBSD: paragraph.c,v 1.16 2008/06/12 21:36:47 kjell Exp $ */ +/* $OpenBSD: paragraph.c,v 1.17 2008/09/15 16:13:35 kjell Exp $ */ /* This file is in the public domain. */ @@ -130,8 +130,7 @@ fillpara(int f, int n) struct line *eopline; /* pointer to line just past EOP */ char wbuf[MAXWORD]; /* buffer for current word */ - undo_add_boundary(); - undo_boundary_enable(FALSE); + undo_boundary_enable(FFRAND, 0); /* record the pointer to the line just past the EOP */ (void)gotoeop(FFRAND, 1); @@ -237,8 +236,7 @@ fillpara(int f, int n) (void)backchar(FFRAND, 1); retval = TRUE; cleanup: - undo_boundary_enable(TRUE); - undo_add_boundary(); + undo_boundary_enable(FFRAND, 1); return (retval); } |