summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2016-09-29 16:12:16 (GMT)
committerfvogelnew1@free.fr <fvogel>2016-09-29 16:12:16 (GMT)
commitd965c80e037d17a3afb55e05e2ed96cdf2b4e14a (patch)
tree362d28fecafecda4023acef3bdf85695f087800b /generic
parentfb5993223121d8cb3c6dd003a6fc93e96980c6d0 (diff)
downloadtk-d965c80e037d17a3afb55e05e2ed96cdf2b4e14a.zip
tk-d965c80e037d17a3afb55e05e2ed96cdf2b4e14a.tar.gz
tk-d965c80e037d17a3afb55e05e2ed96cdf2b4e14a.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++;