[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH] display: to defeat a VTE bug, dot the stripe when i
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] [PATCH] display: to defeat a VTE bug, dot the stripe when it's in the last column |
Date: |
Thu, 14 Mar 2019 13:30:36 +0100 |
This addresses https://savannah.gnu.org/bugs/?55896.
[Better ideas for working around this bug are welcome.]
---
src/winio.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/winio.c b/src/winio.c
index 3f50fb05..a0146956 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -2687,7 +2687,8 @@ void edit_draw(filestruct *fileptr, const char *converted,
if (stripe_column > 0 && !inhelp) {
const char *text = converted + actual_x(converted,
stripe_column - 1);
- const char *striped_char = (*text == '\0') ? " " : text;
+ const char *striped_char = (*text == '\0') ?
+ (stripe_column == editwincols) ? "." :
" " : text;
wattron(edit, interface_color_pair[GUIDE_STRIPE]);
mvwaddnstr(edit, row, margin + stripe_column - 1, striped_char,
1);
--
2.20.1
- [Nano-devel] [PATCH] display: to defeat a VTE bug, dot the stripe when it's in the last column,
Benno Schulenberg <=