1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-24 22:26:03 +00:00

Catch up with the new visual column width handling in term_ascii.c rev. 1.57.

Ending the column always needs to reset viscol now, even while preparing
the top and bottom margin lines.
This fixes broken horizontal spacing in the bottom margin.
Regression reported by <Trond.Endrestol@ximalas.info>
in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289786 .
This commit is contained in:
schwarze
2025-09-26 12:13:24 +00:00
parent 0383cd21a2
commit 8940f8ec2a

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: term_ps.c,v 1.58 2025/07/18 15:46:58 schwarze Exp $ */
/* $OpenBSD: term_ps.c,v 1.59 2025/09/26 12:13:24 schwarze Exp $ */
/*
* Copyright (c) 2014-2017, 2020, 2025 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -1218,6 +1218,8 @@ ps_endline(struct termp *p)
ps_plast(p);
ps_pclose(p);
p->viscol = 0;
p->minbl = 0;
/*
* If we're in the margin, don't try to recalculate our current
@@ -1231,8 +1233,6 @@ ps_endline(struct termp *p)
/* Left-justify. */
p->ps->pscol = p->ps->left;
p->viscol = 0;
p->minbl = 0;
/* If we haven't printed anything, return. */