diff options
author | Mark Lumsden <lum@cvs.openbsd.org> | 2018-11-17 09:52:35 +0000 |
---|---|---|
committer | Mark Lumsden <lum@cvs.openbsd.org> | 2018-11-17 09:52:35 +0000 |
commit | 4fb9d6b004317e784aefef96a36867d9884e2041 (patch) | |
tree | 3a10aefb15f2742db51e66335e2e42d245a39eee | |
parent | 6bbd8fd1573f2e926887e70f0b0e19145c9db8ee (diff) |
fix undo in transpose-paragraph.
-rw-r--r-- | usr.bin/mg/paragraph.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/mg/paragraph.c b/usr.bin/mg/paragraph.c index df8b733c853..694fcc91a84 100644 --- a/usr.bin/mg/paragraph.c +++ b/usr.bin/mg/paragraph.c @@ -1,4 +1,4 @@ -/* $OpenBSD: paragraph.c,v 1.45 2016/09/06 16:25:47 lum Exp $ */ +/* $OpenBSD: paragraph.c,v 1.46 2018/11/17 09:52:34 lum Exp $ */ /* This file is in the public domain. */ @@ -338,6 +338,8 @@ transposepara(int f, int n) if (n == 0) return (TRUE); + undo_boundary_enable(FFRAND, 0); + /* find a paragraph, set mark, then goto the end */ gotobop(FFRAND, 1); curwp->w_markp = curwp->w_dotp; @@ -365,6 +367,8 @@ transposepara(int f, int n) } (void)yank(FFRAND, 1); + undo_boundary_enable(FFRAND, 1); + return (TRUE); } |