From f45db70f36cc88a14f21aaab17b5ce769370c566 Mon Sep 17 00:00:00 2001 From: fvogel Date: Thu, 29 Sep 2016 16:12:16 +0000 Subject: Explained why only spaces are trimmed and not tabs --- generic/tkTextDisp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index e3fc5c9..6d7820a 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -7611,6 +7611,9 @@ TkTextCharLayoutProc( * next line are allocated to the current line. This gives * the effect of trimming white spaces that would otherwise * be seen at the beginning of wrapped lines. + * Note that testing for '\t' is useless here because the + * chunk always includes at most one trailing \t, see + * LayoutDLine. */ bytesThatFit++; -- cgit v0.12