From ed9a4d16c1a2d80761d345659efdc86d2c919b82 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 29 Dec 2010 14:53:31 +0000 Subject: Add handling for `T&', which restarts a table except for its options. --- tbl.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tbl.c') diff --git a/tbl.c b/tbl.c index 1e7f564b..0d992f16 100644 --- a/tbl.c +++ b/tbl.c @@ -1,4 +1,4 @@ -/* $Id: tbl.c,v 1.6 2010/12/29 14:38:14 kristaps Exp $ */ +/* $Id: tbl.c,v 1.7 2010/12/29 14:53:31 kristaps Exp $ */ /* * Copyright (c) 2009, 2010 Kristaps Dzonsons * @@ -120,3 +120,11 @@ tbl_reset(struct tbl *tbl) tbl_init(tbl); } +void +tbl_restart(struct tbl *tbl) +{ + + tbl_clear(tbl); + tbl->part = TBL_PART_LAYOUT; +} + -- cgit v1.2.3-56-ge451