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.master
parent
f08d169aa1
commit
e09dbf18b1
|
@ -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. */
|
/* Show a tab as a visible character, or as as a space. */
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
if (ISSET(WHITESPACE_DISPLAY) && (index > 0 || !isdata ||
|
if (ISSET(WHITESPACE_DISPLAY) && (index > 0 || !isdata ||
|
||||||
!ISSET(SOFTWRAP) || column % tabsize == 0)) {
|
!ISSET(SOFTWRAP) || column % tabsize == 0 ||
|
||||||
|
column == start_col)) {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
while (i < whitespace_len[0])
|
while (i < whitespace_len[0])
|
||||||
|
|
Loading…
Reference in New Issue