commit e09dbf18b15d6431c5edfce2de0fa695b7d88f83
parent f08d169aa145fb9432362cfc7e9fbc0669a1f4fb
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 17 Aug 2017 02:02:31 -0500
display: do show the visible character for a tab when it starts a row
Regardless of whether the row start is at a multiple of the tab size.
This completes the fix for https://savannah.gnu.org/bugs/?51669.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/winio.c b/src/winio.c
@@ -1907,7 +1907,8 @@ char *display_string(const char *buf, size_t column, size_t span, bool isdata)
/* Show a tab as a visible character, or as as a space. */
#ifndef NANO_TINY
if (ISSET(WHITESPACE_DISPLAY) && (index > 0 || !isdata ||
- !ISSET(SOFTWRAP) || column % tabsize == 0)) {
+ !ISSET(SOFTWRAP) || column % tabsize == 0 ||
+ column == start_col)) {
int i = 0;
while (i < whitespace_len[0])