diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-06 21:43:27 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-06 21:43:27 -0700 |
commit | 52e9654e15ae6e38a85b8a134afff0b637dc8fec (patch) | |
tree | 7a1330555f8e212dd6494803c5b271bdfea7d336 /pw.c | |
parent | b11c4d66002e5338c6e210fb31a7e19eef649d21 (diff) | |
download | pw-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -412,7 +412,7 @@ static void drawline(pwstate *pw, const char *line, int lineno) if (vsplit1 || vs2pos) { hlchar(pw, '|'); - width--; + i++; } if (vs2pos < olen) { |