Tk Source Code

Check-in [5fc26426]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

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

Overview
Comment:There could be false negatives with [.text pendingsync] when line metrics calculation is in the middle of a long line.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tip-438
Files: files | file ages | folders
SHA1: 5fc264266884c819ee09370f4e390d7718e8ebb1
User & Date: fvogel 2015-12-20 22:09:14
Context
2015-12-20
22:16
Test text-11a.41 now correctly written passes. check-in: 8213d743 user: fvogel tags: tip-438
22:09
There could be false negatives with [.text pendingsync] when line metrics calculation is in the middle of a long line. check-in: 5fc26426 user: fvogel tags: tip-438
2015-12-19
21:48
Tests reordered. Two issues currently: 1. text-11a.22 currently hangs but should pass once [.text sync -command $cmd] will be correctly implemented. 2. text-11a.41 fails (unsure why) check-in: 54b68217 user: fvogel tags: tip-438
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to generic/tkTextDisp.c.

6140
6141
6142
6143
6144
6145
6146

6147
6148
6149
6150
6151
6152
6153
6154
6155
Bool
TkTextPendingsync(
    TkText *textPtr)		/* Information about text widget. */
{
    TextDInfo *dInfoPtr = textPtr->dInfoPtr;

    return (

        (dInfoPtr->lastMetricUpdateLine - dInfoPtr->currentMetricUpdateLine) ?
        1 : 0);
}
 
/*
 *--------------------------------------------------------------
 *
 * TkTextScanCmd --
 *






>
|
|







6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
Bool
TkTextPendingsync(
    TkText *textPtr)		/* Information about text widget. */
{
    TextDInfo *dInfoPtr = textPtr->dInfoPtr;

    return (
        ((dInfoPtr->metricEpoch == -1) &&
         (dInfoPtr->lastMetricUpdateLine == dInfoPtr->currentMetricUpdateLine)) ?
        0 : 1);
}
 
/*
 *--------------------------------------------------------------
 *
 * TkTextScanCmd --
 *