diff options
-rw-r--r-- | miscutils/less.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/miscutils/less.c b/miscutils/less.c index 7c46ba5cc..90c103888 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -331,8 +331,10 @@ static void re_wrap(void) | |||
331 | *d = *s; | 331 | *d = *s; |
332 | if (*d != '\0') { | 332 | if (*d != '\0') { |
333 | new_line_pos++; | 333 | new_line_pos++; |
334 | if (*d == '\t') /* tab */ | 334 | if (*d == '\t') { /* tab */ |
335 | new_line_pos += 7; | 335 | new_line_pos += 7; |
336 | new_line_pos &= (~7); | ||
337 | } | ||
336 | s++; | 338 | s++; |
337 | d++; | 339 | d++; |
338 | if (new_line_pos >= w) { | 340 | if (new_line_pos >= w) { |