1
1

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.
Этот коммит содержится в:
David Lawrence Ramsey 2017-08-17 02:02:31 -05:00 коммит произвёл Benno Schulenberg
родитель f08d169aa1
Коммит 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. */
#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])