diff options
Diffstat (limited to 'term_ps.c')
-rw-r--r-- | term_ps.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: term_ps.c,v 1.5 2010/06/09 08:31:18 kristaps Exp $ */ +/* $Id: term_ps.c,v 1.6 2010/06/10 23:56:33 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -268,11 +268,12 @@ ps_letter(struct termp *p, char c) static void ps_advance(struct termp *p, size_t len) { + size_t i; if (PS_INLINE & p->engine.ps.psstate) { - /* Dump out any existing line scope. */ - ps_printf(p, ") show\n"); - p->engine.ps.psstate &= ~PS_INLINE; + for (i = 0; i < len; i++) + ps_letter(p, ' '); + return; } p->engine.ps.pscol += len ? len * PS_CHAR_WIDTH : 0; |