Tk Source Code

Check-in [9bb41fc3]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fixed comment
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | text-elided
Files: files | file ages | folders
SHA1: 9bb41fc3eea0065b1a2aa4faf2cb1d9a35ea9778
User & Date: fvogel 2014-12-20 13:42:50
Context
2014-12-21
20:54
Fixed test of index being at start of both a logical line and a display line in TkTextFindDisplayLineEnd check-in: 84a90c5b user: fvogel tags: text-elided
2014-12-20
13:42
Fixed comment check-in: 9bb41fc3 user: fvogel tags: text-elided
2014-12-17
21:54
Fixed vertical scrolling with elided lines. MeasureUp was not measuring fully correctly. check-in: 77c4065d user: fvogel tags: text-elided
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to generic/tkText.c.

904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
		index.byteIndex = 0;

		/*
		 * We're going to count up all display lines in the logical
		 * line of 'indexFromPtr' up to, but not including the logical
		 * line of 'indexToPtr' (except if this line is elided), and
                 * then subtract off what came in too much from elided lines,
                 * also subtract off we didn't want from 'from' and add on
		 * what we didn't count from 'to'.
		 */

                while (TkTextIndexCmp(&index,indexToPtr) < 0) {
		    value += TkTextUpdateOneLine(textPtr, index.linePtr,
                            0, &index, 0);
		}








|
|







904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
		index.byteIndex = 0;

		/*
		 * We're going to count up all display lines in the logical
		 * line of 'indexFromPtr' up to, but not including the logical
		 * line of 'indexToPtr' (except if this line is elided), and
                 * then subtract off what came in too much from elided lines,
                 * also subtract off what we didn't want from 'from' and add
		 * on what we didn't count from 'to'.
		 */

                while (TkTextIndexCmp(&index,indexToPtr) < 0) {
		    value += TkTextUpdateOneLine(textPtr, index.linePtr,
                            0, &index, 0);
		}