summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove 2 comments which are simply not correct (nor useful) any morejan.nijtmans2020-01-191-5/+0
|
* CONST -> const. Eliminate unnecessary type-casts and end-of-line spacingjan.nijtmans2019-06-251-1/+1
|
*-. Merge 8.6 and all changes from original [bug-9e31fd9449] branchjan.nijtmans2019-01-081-3/+3
|\ \
| | * Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2019-01-081-2/+2
| | |\ | | | | | | | | | | | | | | | | | | | | Windows.h have conflicting symbols. *** POTENTIAL INCOMPATIBILITY *** on Windows only: gcc/clang/MSVC will generate new warnings in extensions when the "None" symbol is used incorrectly. Those warnings are all fixed in the core, that's what most of this commit is doing.
| * | | Fix bug [b2dd3b4fe8] (text-11a.41 sometimes hangs) by reworking how thejan.nijtmans2019-01-031-6/+5
| | | | | | | | | | | | <<WidgetViewSync>> event is handled.
* | | | Make AsyncUpdateLineMetrics cancel any idle tasks for the afterSyncCmd before culler2019-01-021-5/+4
| | | | | | | | | | | | running it, to protect against bug [0a9c91951b].
* | | | Use a flag bit instead of an int to store the sync state. Avoid running idleculler2019-01-021-2/+0
| | | | | | | | | | | | tasks in the sync command if possible.
* | | | The sync command needs to ensure that no redraw is pending before updatingculler2019-01-011-0/+1
| | | | | | | | | | | | the line metrics. Otherwise pendingsync will remain true after the sync.
* | | | Make GenerateWidgetSyncEvent save the sync state whenever it sends an event,culler2018-12-311-0/+1
| | | | | | | | | | | | and not send an event unless the requested state differs from the saved state.
* | | | merge core-8-6-branch.culler2018-12-311-12/+12
|\ \ \ \
| * \ \ \ As requested by Christian Werner/François Vogel and others: Undo many None ↵jan.nijtmans2018-12-311-12/+12
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | -> 0 changes, in order to reduce the probability of merge conflicts with other branches. Remark: Many usages of "None" in Tk are wrong, "NULL" should be used in many places where pointers are referenced in stead of XID's. Those places are corrected.
| | * | | As requested by Christian Werner/François Vogel and others: Undo many None ↵jan.nijtmans2018-12-311-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | -> 0 changes, in order to reduce the probability of merge conflicts with other branches. Remark: Many usages of "None" in Tk are wrong, "NULL" should be used in many places where pointers are referenced in stead of XID's. Those places are corrected.
* | | | | Merge core-8-6-branch.culler2018-12-301-14/+14
|\ \ \ \ \ | |/ / / /
| * | | | Fix [9e31fd9449]: X11/X.h and Windows.h have conflicting symbols jan.nijtmans2018-12-201-14/+14
| |\ \ \ \ | | |/ / / | | | / / | | |/ / | |/| | *** POTENTIAL INCOMPATIBILITY *** for Win32 only: On X11 and Mac, "None" can still be used as before
| | * | Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2018-12-201-19/+19
| | |/ | | | | | | | | | | | | Windows.h have conflicting symbols. Also fix a few newer (harmless) gcc warnings.
* | | In TkTextUpdateLineMetrics, line numbers start at zero, not 1fvogel2018-11-191-1/+1
|/ /
* | Fix backwards search, thanks to Koen Danckaertfvogel2018-10-161-6/+9
| |
* | Simplify patch for forward search a litle bitfvogel2018-10-161-2/+2
| |
* | Remove comment I forgot to revert previously.fvogel2018-10-151-3/+1
| |
* | Third fix proposal for [4b555aca34]: text search -all hangs and eats all ↵fvogel2018-10-151-1/+2
| | | | | | | | memory. (And fix test text-22.229)
* | Revert the second fix proposal, and add more tests (covering backwards ↵fvogel2018-10-151-3/+0
| | | | | | | | searches). Note that text-22.228 and text-22.229 currently hang.
* | Another proposed fix for [4b555aca34]: text search -all hangs and eats all ↵fvogel2018-10-151-1/+6
| | | | | | | | memory.
* | Backout the previously proposed fix [80286abf05], and add more tests.fvogel2018-10-151-2/+2
| |
* | Fix [4b555aca34]: text search -all hangs and eats all memoryfvogel2018-10-111-2/+2
| |
* | Eliminate type-casts, by using size_t type internally in more situations. No ↵jan.nijtmans2018-08-101-23/+24
| | | | | | | | functional changes
* | Fix [de01e24aa1]: Text replace command involving selection crashesfvogel2018-06-131-3/+9
| |
* | Fix [b68710aed6]: Minor fixes to library/text.tcl bindings, and generation ↵fvogel2018-01-281-32/+33
|\ \ | | | | | | | | | of <<Selection>> events. Legacy text widget.
| * | Deal with the case of selection modification by insertion. All tests about ↵fvogel2018-01-181-1/+5
| | | | | | | | | | | | <<Selection>> now pass, and no test is newly failing.
| * | Deal with the case of selection modification by deletion. This makes ↵fvogel2018-01-161-31/+28
| | | | | | | | | | | | text-27.15b and text-27.15c pass.
* | | merge core-8-6-branchfvogel2018-01-211-17/+18
|\ \ \ | |/ /
| * | Add "TK_TEXT_" prefix in SEARCH* enum, in order to resolve conflict with ↵jan.nijtmans2017-12-071-17/+17
| | | | | | | | | | | | latest Visual Studio headers. Part of fix for [3d34589aa0ae079039e2e2a60a5ed67c0056836d|3d34589aa0]: Tk does not build under Visual Studio 2017 Update 5
| * | Fix [62c5b7a1d7]: [text] segfaults on replace. Patch from Christian Werner.fvogel2017-06-261-0/+1
| | |
* | | Test whether in a safe interpreter before writing to the PRIMARY selection. ↵kjnash2017-06-131-4/+4
|/ / | | | | | | Fixes bug [de156e9efe]. Ready for testing.
* | Change more refCount checks to the form "(...refCount-- <= 1)", so no ↵jan.nijtmans2017-01-181-8/+4
| | | | | | | | separate decrement and compare is necessary. This allows (in the future) the same code to work when refCount becomes unsigned (which at least doubles the range). No functional change.
* | Enhanced proposed fix [6c0d7aec67]: unicode text input Windows 8. More ↵jan.nijtmans2016-09-191-4/+4
|\ \ | | | | | | | | | places where Unicode surrogate handling could be improved.
| * | More simplificationsjan.nijtmans2016-09-191-3/+3
| | |
| * | Rename TkUtfToUniChar32 to TkUtfToUniChar2, and various simplifications ↵jan.nijtmans2016-09-161-9/+1
| | | | | | | | | | | | needing less #ifdef's
| * | Patch from Christian Werner, for evaluationjan.nijtmans2016-09-161-0/+8
| | |
| * | Made text widget's default undo false again.pspjuth2016-08-301-1/+1
| |\ \
| * \ \ Rebased to trunk since TIP #449 was accepted for merging to trunk only, not ↵fvogel2016-08-291-1/+1
| |\ \ \ | | | | | | | | | | | | | | | to core-8-6-branch
| | * \ \ Whitespace fixesjan.nijtmans2016-06-151-147/+147
| | |\ \ \
| | * \ \ \ Fixed [6976e4b3b2] - -undo options not correct for peersfvogel2016-06-111-3/+6
| | |\ \ \ \
| | * \ \ \ \ Merged TIP #446 accepted by TCT vote. This fixes [1273358] - Ask a text ↵fvogel2016-05-301-18/+94
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | widget for the depth of its undo and redo stacks.
| | * \ \ \ \ \ Fixed [b362182e45] - Generation of virtual events through Tk_HandleEvent is ↵fvogel2016-05-011-24/+2
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | unsafe
| | * \ \ \ \ \ \ Fixed [fd3a4dc111] - <<Modified>> event is not always sent to peersfvogel2016-04-291-1/+4
| | |\ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ Fixed [18c08df753] - Change of behaviour for text widget last newlinefvogel2016-03-271-5/+14
| | |\ \ \ \ \ \ \ \
| | * | | | | | | | | Merged tip-443 following acceptation of the TIP by TCT vote (cherrypicked ↵fvogel2016-03-201-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [cb3354b298])
| | * | | | | | | | | Fixed error in commentfvogel2016-03-181-1/+1
| | | | | | | | | | |
| * | | | | | | | | | The undo marks identifier is now a member of textPtr->sharedTextPtr. This ↵fvogel2016-07-061-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | makes results of test text-8.22 independant of previous undo/redo actions on other text widgets.
| * | | | | | | | | | Removed unintended whitespace changefvogel2016-07-051-1/+1
| | | | | | | | | | |