sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit 7db2aff64a79f525c1b836f277c54cf31906fca4
parent 18ab2f4c2ec658061f6a603c02b02fb4862770b6
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri Jan  1 11:17:01 +0100

ed: Reset modflag in clearbuf()

For the same reason we don't care about the state of
the buffer in clearundo() we can reset modflag in
clearbuf(), because after calling it we don't want
to know anything about the previous state.

Diffstat:
ed.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ed.c b/ed.c @@ -322,7 +322,7 @@ clearbuf() free(zero); zero = NULL; scratch = csize = idxsize = lastidx = curln = lastln = 0; - lastln = curln = 0; + modflag = lastln = curln = 0; } static void