Commit 9f6c3a62 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

display: don't doubly show tabs that cross a chunk boundary

This fixes https://savannah.gnu.org/bugs/?51669

.
Reported-by: default avatarDavid Lawrence Ramsey <pooka109@gmail.com>
parent 62737687
Showing with 2 additions and 1 deletion
+2 -1
......@@ -1906,7 +1906,8 @@ char *display_string(const char *buf, size_t column, size_t span, bool isdata)
} else if (*buf == '\t') {
/* Show a tab as a visible character, or as as a space. */
#ifndef NANO_TINY
if (ISSET(WHITESPACE_DISPLAY)) {
if (ISSET(WHITESPACE_DISPLAY) && (index > 0 || !isdata ||
!ISSET(SOFTWRAP) || column % tabsize == 0)) {
int i = 0;
while (i < whitespace_len[0])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment