Tk Source Code

Check-in [e4ceb24e]
Login

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

Overview
Comment:Fix logic error in comment. We are in the case (actualElided != shouldBeElided), i.e. these two boolean variables are different. Inside this case, we're in the else clause of an 'if (shouldBeElided)', therefore this else clause is the case 'if (actualElided)', not 'if (!actualElided)'.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | revised_text | tip-466
Files: files | file ages | folders
SHA3-256: e4ceb24e3dceae77c184a3d23f18ba7564889ee0394713b0bdc7fdbe922563aa
User & Date: fvogel 2025-02-01 14:38:13
Context
2025-02-01
15:08
Fix [bdd1f64523]: Assertion failed when switching -elide in the revised text widget check-in: 4bce1cc1 user: fvogel tags: revised_text, tip-466
14:38
Fix logic error in comment. We are in the case (actualElided != shouldBeElided), i.e. these two boolean variables are different. Inside this case, we're in the else clause of an 'if (shouldBeElided)', therefore this else clause is the case 'if (actualElided)', not 'if (!actualElided)'. check-in: e4ceb24e user: fvogel tags: revised_text, tip-466
13:06
Fix typo and add comments. check-in: 8709902f user: fvogel tags: revised_text, tip-466
Changes
Unified Diff Ignore Whitespace Patch
Changes to generic/tkTextBTree.c.
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
			deletedBranchPtr = NULL;
		    } else {
			lastBranchPtr = MakeBranch();
		    }
		    LinkSwitch(linePtr, segPtr->prevPtr, lastBranchPtr);
		    newBranchPtr = lastBranchPtr;
		    somethingHasChanged = 1;
		} else { /* if (!actualElided) */
		    /*
		     * We have to insert a link.
		     */

		    if (!lastBranchPtr) {
			/*
			 * The related branch is starting outside of this range,







|







8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
			deletedBranchPtr = NULL;
		    } else {
			lastBranchPtr = MakeBranch();
		    }
		    LinkSwitch(linePtr, segPtr->prevPtr, lastBranchPtr);
		    newBranchPtr = lastBranchPtr;
		    somethingHasChanged = 1;
		} else { /* if (actualElided) */
		    /*
		     * We have to insert a link.
		     */

		    if (!lastBranchPtr) {
			/*
			 * The related branch is starting outside of this range,