diff options
Diffstat (limited to '')
-rw-r--r-- | table.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -510,8 +510,9 @@ int visible_length_plain(char *str) { int len = 0, max_len = 0; + char *strz = str + strlen(str); - while (*str) { + while (str < strz) { if (*str == '\t') { do { len++; |