From 52e9654e15ae6e38a85b8a134afff0b637dc8fec Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 6 May 2022 21:43:27 -0700 Subject: Minor tweak to middle pane behavior. As a middle pane is being freshly opened, the right vertical separator should just "wipe" over the display contents without the middle pane material appearing to shift right by one character position. So when we draw the separating pipe, we should claim that as a character, rather than subtracting from the width. The "oline + vs2pos + i" calculation already works with the possibility of i being incremented; I had experimented with this earlier. --- pw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pw.c') diff --git a/pw.c b/pw.c index 7ceb695..62c2736 100644 --- a/pw.c +++ b/pw.c @@ -412,7 +412,7 @@ static void drawline(pwstate *pw, const char *line, int lineno) if (vsplit1 || vs2pos) { hlchar(pw, '|'); - width--; + i++; } if (vs2pos < olen) { -- cgit v1.2.3