aboutsummaryrefslogtreecommitdiffstats
path: root/pw.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-05-06 21:43:27 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-05-06 21:43:27 -0700
commit52e9654e15ae6e38a85b8a134afff0b637dc8fec (patch)
tree7a1330555f8e212dd6494803c5b271bdfea7d336 /pw.c
parentb11c4d66002e5338c6e210fb31a7e19eef649d21 (diff)
downloadpw-52e9654e15ae6e38a85b8a134afff0b637dc8fec.tar.gz
pw-52e9654e15ae6e38a85b8a134afff0b637dc8fec.tar.bz2
pw-52e9654e15ae6e38a85b8a134afff0b637dc8fec.zip
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.
Diffstat (limited to 'pw.c')
-rw-r--r--pw.c2
1 files changed, 1 insertions, 1 deletions
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) {