From d23e22589e751d72e8c20ca87b0b10ad9798bf42 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Wed, 22 Nov 2017 15:00:14 +0100 Subject: [PATCH] Issue #403 PR #641 - Hot fix for column tabs count --- src/streamio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streamio.c b/src/streamio.c index bf75a1a..d23f056 100644 --- a/src/streamio.c +++ b/src/streamio.c @@ -269,7 +269,6 @@ uint TY_(ReadChar)( StreamIn *in ) if (c == '\t') { Bool keeptabs = cfg( in->doc, TidyKeepTabs ); - in->curcol++; if (!keeptabs) { uint tabsize = cfg(in->doc, TidyTabSize); in->tabs = tabsize > 0 ? @@ -277,6 +276,7 @@ uint TY_(ReadChar)( StreamIn *in ) : 0; c = ' '; } + in->curcol++; break; }