nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] [PATCH V2] display: dot the stripe when it's in the last co


From: Benno Schulenberg
Subject: [Nano-devel] [PATCH V2] display: dot the stripe when it's in the last column, to defeat a VTE bug
Date: Thu, 14 Mar 2019 17:22:10 +0100

V2: Updated for current git.

This addresses https://savannah.gnu.org/bugs/?55896.
---
 src/winio.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c
index 26bca2d6..92e3e0f4 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -2688,7 +2688,8 @@ void edit_draw(filestruct *fileptr, const char *converted,
        if (stripe_column > from_col && !inhelp) {
                const ssize_t target_column = stripe_column - from_col - 1;
                const char *text = converted + actual_x(converted, 
target_column);
-               const char *striped_char = (*text == '\0') ? " " : text;
+               const char *striped_char = (*text == '\0') ?
+                                       (target_column + 1 == editwincols) ? 
"." : " " : text;
 
                wattron(edit, interface_color_pair[GUIDE_STRIPE]);
                mvwaddnstr(edit, row, margin + target_column, striped_char, 1);
-- 
2.20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]