summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-09-29 16:12:16 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-09-29 16:12:16 (GMT)
commitf45db70f36cc88a14f21aaab17b5ce769370c566 (patch)
tree362d28fecafecda4023acef3bdf85695f087800b /generic
parent2ae5179d81bf1d478a7f7baca04997655f0cf425 (diff)
downloadtk-f45db70f36cc88a14f21aaab17b5ce769370c566.zip
tk-f45db70f36cc88a14f21aaab17b5ce769370c566.tar.gz
tk-f45db70f36cc88a14f21aaab17b5ce769370c566.tar.bz2
Explained why only spaces are trimmed and not tabs
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c3
1 files changed, 3 insertions, 0 deletions
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++;