commit 0362c58b376cec6810fa7b9792a97c66708ccb4e
parent 99bede34e746269d4b257718d4ac1bcf987c1827
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Tue, 30 Sep 2003 03:31:56 +0000
add missing set of parentheses
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1563 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/winio.c b/src/winio.c
@@ -352,7 +352,7 @@ size_t actual_x(const char *str, size_t xplus)
for (; length < xplus && *str != '\0'; i++, str++) {
if (*str == '\t')
- length += tabsize - length % tabsize;
+ length += tabsize - (length % tabsize);
else if (is_cntrl_char((int)*str))
length += 2;
else