summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove obsolete comments. The line they comment was kicked out of the code ↵bug_fab5fed65efvogel2017-01-151-1/+2
| | | | | | | in [946e946700]. Also, add a small optimization to avoid double invalidation of the damaged region. Indeed the detailed analysis of ticket [fab5fed65e] showed that on OS X the damaged region is invalidated twice: - once through the processing of the Expose event (on OS X the Appkit is not used to draw the widget, Tk is used instead, see comments in tkMacOSXWindowEvent.c around line 770) - a second time because DisplayText() calls TextInvalidateRegion() after TkScrollWindow()
* Reverted [7ed6460f] since it fixes an issue unrelated to the bug presented ↵bug_3df559ef7cfvogel2017-01-071-1/+1
| | | | in [3df559ef7c] - Negative bbox width on OS X.
* Do everything the other way round. Leave things how they were on OS X ↵fvogel2016-12-301-3/+7
| | | | (revert [a076cf64] and [42e0339e]), and fix TkpDrawCharsInContext() on Win and Linux in case these platforms at some point of time decide to define TK_LAYOUT_WITH_BASE_CHUNKS and TK_DRAW_IN_CONTEXT to true
* On Windows with TK_LAYOUT_WITH_BASE_CHUNKS and TK_DRAW_IN_CONTEXT being both ↵fvogel2016-12-231-7/+3
| | | | defined for testing purposes, rendering of the text was incorrect because some chunks were superimposed (this was only a display issue, x and width of all chunks were already correct). Fix this.
* On Windows with TK_LAYOUT_WITH_BASE_CHUNKS and TK_DRAW_IN_CONTEXT being both ↵fvogel2016-12-231-1/+1
| | | | defined for testing purposes, four tests (textDisp-18.6, 20.2, 20.3 and 20.4) were failing. Fix this.
* Fix [3df559ef7c] - Negative bbox width on OS X. Tested OK on Windows with ↵fvogel2016-12-231-1/+1
| | | | TK_LAYOUT_WITH_BASE_CHUNKS being defined.
* Fixed [1082213fff] - word wrapping should trim excess spacesfvogel2016-10-091-0/+18
|\
| * Added explanatory commentfvogel2016-09-301-0/+3
| |
| * Explained why only spaces are trimmed and not tabsfvogel2016-09-291-0/+3
| |
| * Slightly better fixfvogel2016-09-281-11/+11
| |
| * Fixed [1082213fff] - word wrapping should trim excess spacesfvogel2016-09-281-0/+12
| |
* | Enhanced proposed fix [6c0d7aec67]: unicode text input Windows 8. More ↵jan.nijtmans2016-09-191-2/+2
|\ \ | |/ |/| | | places where Unicode surrogate handling could be improved.
| * More simplificationsjan.nijtmans2016-09-191-1/+1
| |
| * Rename TkUtfToUniChar32 to TkUtfToUniChar2, and various simplifications ↵jan.nijtmans2016-09-161-2/+2
| | | | | | | | needing less #ifdef's
| * [5660d11c3f] Fix new -lmargincolordgp2016-07-281-7/+7
| |\ | |/ |/|
| * Fixed [b362182e45] - Generation of virtual events through Tk_HandleEvent is ↵fvogel2016-05-011-13/+4
| |\ | | | | | | | | | unsafe
| * | Merged tip-443 following acceptation of the TIP by TCT vote (cherrypicked ↵fvogel2016-03-201-6/+100
| | | | | | | | | | | | [cb3354b298])
| * | Eliminate use of Tcl_SetResult(), and CONST -> constjan.nijtmans2016-03-151-2/+2
| | |
* | | Fixed [5660d11c3f] - text tag -background option overrules -lmargincolorfvogel2016-07-261-7/+7
| |/ |/|
* | Fixed [b362182e45] - Generation of virtual events through Tk_HandleEvent is ↵fvogel2016-04-211-13/+4
| | | | | | | | unsafe
* | Backed out anything dealing with stippling, in accordance with discussion ↵fvogel2016-03-081-16/+4
| | | | | | | | about TIP #443
* | trunk merged to branch tip-443fvogel2016-03-011-1/+1
|\ \ | |/
| * Fixed error in commentfvogel2016-02-111-1/+1
| |
* | -lmargincolor tag configuration option: implementation slightly optimized ↵fvogel2016-02-111-3/+2
| | | | | | | | since Tk_Fill3DRectangle is robust with respect to negative widths
* | -rmargincolor tag configuration option: implementationfvogel2016-02-101-4/+25
| |
* | -lmargincolor tag configuration option: implementationfvogel2016-02-101-0/+26
| |
* | -overstrikefg tag configuration option: implementationfvogel2016-02-091-3/+17
| |
* | -underlinefg tag configuration option: implementationfvogel2016-02-091-2/+17
| |
* | -selectfgstipple tag configuration option: implementationfvogel2016-02-091-2/+8
| |
* | -selectbgstipple tag configuration option: implementationfvogel2016-02-091-2/+8
| |
* | -selectforeground tag configuration option: implementationfvogel2016-02-091-2/+8
| |
* | -selectbackground tag configuration option: implementationfvogel2016-02-091-0/+13
|/
* Fixed (with a real fix this time) bug [06c1433906] - Text widget crash ↵fvogel2016-02-081-16/+41
|\ | | | | | | during delete
| * With the real fix in FindDLine ([717e12ee]) there is no need anymore of the ↵finddlinefvogel2016-02-081-3/+0
| | | | | | | | emergency patch [c3c09f82].
| * Made FindDLine fully match its header description.fvogel2016-02-081-3/+30
| |
| * More comments in FindDLine, with slightly optimized code to achieve the same ↵fvogel2016-02-081-3/+11
| | | | | | | | functionality.
| * Reverted [311ef109] and [1847c858] because they are no longer needed to fix ↵fvogel2016-02-081-8/+1
| | | | | | | | bug [2f78c7c5ea]. The corresponding test textDisp-9.14 still passes.
* | Corrected indentation + added an explanatory comment.fvogel2016-02-081-1/+4
| |
* | Fix [06c14339060ba9ae]: Text widget crash during delete. Thanks to François ↵jan.nijtmans2016-02-081-5/+3
|\ \ | |/ | | | | Vogel for the implementation and Brian Griffin for all his help getting this figured out.
| * while is better than if because it deals with wrapped lines then.fvogel2016-02-071-1/+1
| |
| * Hopefully a better fix for [06c1433906] - Text widget crashfvogel2016-02-071-5/+3
| |
| * [06c1433906] Possible fix for text widget crashes.dgp2016-02-041-0/+5
| |
* | Fix crashing test case, textDisp-8.13dgp2016-02-051-0/+5
| |
* | rebase "tip-438" branch to latest trunk.tip_438jan.nijtmans2016-01-071-2/+96
|\ \
| * \ Merged core-8-5-branchfvogel2015-12-261-1/+8
| |\ \ | | |/
| * | [.text sync -command $cmd] schedules execution of $cmd by the event loop at ↵fvogel2015-12-261-11/+11
| | | | | | | | | | | | idle time
| * | There could be false negatives with [.text pendingsync] when line metrics ↵fvogel2015-12-201-2/+3
| | | | | | | | | | | | calculation is in the middle of a long line.
| * | Merged core-8-5-branchfvogel2015-12-131-13/+14
| |\ \
| * \ \ Merged core-8-5-branchfvogel2015-12-091-24/+47
| |\ \ \
| * | | | [.text pendingsync] returns a booleanfvogel2015-11-281-6/+7
| | | | |