mg

port of mg editor (openbsd to linux)
Log | Files | Refs | README

commit a53603aca657a3e5664cc0a3f0a0f960d1959107
parent e065886eff9a01840063c7e61ea0afa6752c752f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun,  7 Dec 2014 18:48:55 +0100

filter-region: if mark is not set, set mark to dot

Diffstat:
region.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/region.c b/region.c @@ -333,6 +333,10 @@ filterregion(int f, int n) char *p; int r; + /* if mark is not set: set mark to dot */ + if (curwp->w_markp == NULL) + setmark(f, n); + r = piperegion(f, n); if(r == FALSE) return FALSE;