summaryrefslogtreecommitdiffstats
path: root/generic/tkTextIndex.c
Commit message (Collapse)AuthorAgeFilesLines
* Enhanced proposed fix [6c0d7aec67]: unicode text input Windows 8. More ↵jan.nijtmans2016-09-191-4/+4
|\ | | | | | | | | places where Unicode surrogate handling could be improved. FossilOrigin-Name: 158c61aa5ffd697b194a5f4d113c4966bb194828
| * More simplificationsjan.nijtmans2016-09-191-2/+2
| | | | | | FossilOrigin-Name: 2ed5f2933ad1577498707f50803d1ce1493260a6
| * Rename TkUtfToUniChar32 to TkUtfToUniChar2, and various simplifications ↵jan.nijtmans2016-09-161-12/+4
| | | | | | | | | | needing less #ifdef's FossilOrigin-Name: 5dd9f6822d98f0122b76ba5b70d26973278421cd
| * Patch from Christian Werner, for evaluationjan.nijtmans2016-09-161-2/+10
| | | | | | FossilOrigin-Name: 050a13caf65cb80433c66bab5db0ab9878b14f07
| * Eliminate use of Tcl_SetResult(), and CONST -> constjan.nijtmans2016-03-151-9/+9
|/ | | FossilOrigin-Name: a7e160622dd32e306ed6ba0cbb5ede2b8198cb48
* Fixed bug [3f1f79abcf] - Text widget crash when seeing or bboxing (or ↵fvogel2015-07-131-1/+1
|\ | | | | | | | | selecting, moving the cursor...) in elided text FossilOrigin-Name: ec62978f685e92891e9691bd7166847afbd3c7aa
| * Fixed bug [3f1f79abcf] - Text widget crash when seeing or bboxing (or ↵fvogel2015-07-101-1/+1
| | | | | | | | | | selecting, moving the cursor...) in elided text FossilOrigin-Name: 716fe4a4132566e6600a7edbbd5315ffab7b020b
* | [562118ce41] Fix wordstart modifier handling of multi-byte charsdgp2015-04-091-5/+14
|\ \ | |/ | | FossilOrigin-Name: 8becf1a0224f88d0668a2af29e12e73a3cd037ac
| * [562118ce41] Fix wordstart modifier handling of multi-byte charsdgp2015-04-091-5/+14
| |\ | | | | | | FossilOrigin-Name: 6f5cc9f5469a5e28b19d05ee041eb8b4b6f8665e
| | * Fix typo in commentfvogel2015-04-071-1/+1
| | | | | | | | | FossilOrigin-Name: 4ea5fac8c79f7776a11f539c39e201ac3aa8af83
| | * Fix wordstart modifier for UTF-8 text - Bug [562118ce41]fvogel2015-04-071-4/+13
| | | | | | | | | FossilOrigin-Name: d783dde4245aca4dec81e73d69e2eb17f4b0cd78
* | | [e4ed00a954] Fixed crash with display wordstartdgp2015-04-091-1/+1
|\ \ \ | |/ / | | | FossilOrigin-Name: dd4b1845e5796fecca3cf216ea703f3456922e19
| * | Fixed crash with display wordstart - Bug [e4ed00a954]fvogel2015-04-081-1/+1
| |/ | | | | FossilOrigin-Name: c6263db4688221bc5e66a0af20d29106ef99f21b
* | Merge bug fixes from fvogel's text-elided branchdgp2015-02-061-0/+87
|\ \ | |/ | | FossilOrigin-Name: 486c2c231615967bff29239550028a408c0b9e31
| * merge 8.5dgp2015-02-061-2/+2
| |\ | | | | | | FossilOrigin-Name: cc1f6cc9e080519d88cab076e2c313385d2e7f6a
| * | TkTextIndexCount is counting chars. Fix these calls where bytes counting is ↵fvogel2015-01-241-0/+87
| | | | | | | | | | | | | | | needed. Among other issues, this fixes horizontal scrolling when typing text at the end of a line containing multi-byte characters. FossilOrigin-Name: 0705951b3ab74e69c02589a253a933c67b7ab3cc
* | | [c9535cd7ce] GetIndex() failed to route all successful exits through code ↵dgp2015-02-061-2/+2
|\ \ \ | | |/ | |/| | | | | | | that writes a result through the canCachePtr. FossilOrigin-Name: 466b1190a27ed7bef60aae515c0be2a755910213
| * | [c9535cd7ce] GetIndex() failed to route all successful exits through codedgp2015-02-061-2/+2
| |/ | | | | | | | | that writes a result through the canCachePtr. FossilOrigin-Name: cd8ed3e9f02b8d92efbcea08d6c271785ae9297d
* | Remove unneeded SetOptionFromAny and SetTextIndexFromAny. They were only ↵jan.nijtmans2013-02-261-15/+1
| | | | | | | | | | needed to prevent a panic in Tcl, but Tcl now generates a nice error-message in stead of panicing. FossilOrigin-Name: b1a5b20004877817f041bffa49da86ff03e32850
* | [Bug 3588824]: bug in image index handling for weird image namesdgp2012-12-041-3/+13
|\ \ | |/ | | FossilOrigin-Name: b5918b5b9e6c6b2f436a8476134a090a13c1fc52
| * [Bug 3588824]: bug in image index handling for weird image namesdgp2012-12-041-3/+13
| |\ | | | | | | FossilOrigin-Name: 22d3368e71cab5f668519e2542f0863360ddd0ca
| | * [Bug 3588824]: bug in image index handling for weird image namesfvogel2012-11-221-3/+12
| | | | | | | | | FossilOrigin-Name: 7bb1876eb2de31e1bf3c2036bda7048d77c814de
* | | more auditing of error codesdkf2012-07-301-5/+4
| | | | | | | | | FossilOrigin-Name: aae315a30f0b4367d59525a21dfb5139c4440a36
* | | Working towards making the error codes more consistent.dkf2012-07-301-1/+1
| | | | | | | | | FossilOrigin-Name: 45327b3d6fc9c1c7c415e8c25e98639bed019d84
* | | Much more cleaning up of result handling.dkf2012-07-231-9/+11
| | | | | | | | | FossilOrigin-Name: 016ad9dac31d39cbc9ded6a6e8e75c11618318a8
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ / | | | FossilOrigin-Name: b8a1385217cc117d6962c234f0a4d28ff10e089c
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/ | | | FossilOrigin-Name: 3f95fbe0ce14948fd409844b915c18ef25d7d0a0
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | | | | | | | | FossilOrigin-Name: a74f32bb6369d3e66e661145c81a98a14ed79b3a
| * | * generic/tkImgPhoto.c: fix numerous leaks discovered with thedas2009-02-061-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMenu.c: Mac OS X Instruments.app Leaks tool. * generic/tkText.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkUndo.c: * generic/ttk/ttkFrame.c: * macosx/tkMacOSXWm.c: FossilOrigin-Name: d9450816286ce996e1ed59081d8104370d645c5d
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-11/+11
| | | | | | | | | | | | | | | using useful casts internally. FossilOrigin-Name: 142e016e7b17277d81257da90477297eb9aaa05a
* | | [Tcl Bug 2857044]: Corrections following audit of Tcl_ObjType freeingdkf2009-11-211-25/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | practises; the typePtr field is now cleared when an object ceases to be of the type. Also remove some anachronistic techniques (pointless casts, mixed assignments and tests, etc.) FossilOrigin-Name: df4218fb3c5ad6d27266f7c936baa0d953d5e7a5
* | | * generic/tkFocus.c: fix potential null dereference flagged by clangdas2009-09-071-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMenu.c: static analyzer. * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextIndex.c: * generic/tkConsole.c: silence false positives from clang static * generic/tkTest.c: analyzer about potential null dereference. * generic/tkText.c: * generic/tkTextBTree.c: * generic/tkTextTag.c: * generic/tkVisual.c: FossilOrigin-Name: 7f80c75ac73843fc471ab547b2ee8469e5b61323
* | | * generic/tkImgPhInstance.c: fix numerous leaks discovered with thedas2009-02-061-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMenu.c: Mac OS X Instruments.app Leaks tool. * generic/tkText.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkUndo.c: * generic/tkUtil.c: * generic/ttk/ttkFrame.c: * macosx/tkMacOSXWm.c: FossilOrigin-Name: b14d66d41a37ce6244ef28a6db2687c2c5165a58
* | | undid previous 'fix': 'const' is only useful for pointers, not fornijtmans2008-12-051-24/+24
| | | | | | | | | | | | | | | | | | opaque types. Therefore it should not have slipped in here. FossilOrigin-Name: 8e68859f53d222add454fc02087b63c034f29648
* | | Make TkTextMakeByteIndex implementation agree with the prototype (const-ness)patthoyts2008-12-051-2/+2
| | | | | | | | | FossilOrigin-Name: 2ceae6be83a59b6375c5dcae4610fedf4dc4015e
* | | Lots of small changes to make code more pretty and C89-like.dkf2008-11-081-3/+3
| | | | | | | | | FossilOrigin-Name: 782ccc1d4281d79d7cd4e7db9add4b5aceba18fe
* | | Add "const" to many internalnijtmans2008-10-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries. FossilOrigin-Name: 7702e3f7a3d0133733e965183538a53dffbeba1c
* | | Greatly clean up Tk's handling of the writability of the Tcl result object.dkf2008-10-051-4/+3
| | | | | | | | | FossilOrigin-Name: a83341a36174d2059bc339dea19260a38eda5a01
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-47/+45
|/ / | | | | FossilOrigin-Name: ddfd8bb6f7ecfa71a218a5dc88075a419e3e1d5c
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| | | | | | FossilOrigin-Name: e7868b44c1e7bffc63a053b87a96a4499757f80d
* | * generic/tkArgv.c: Fix gcc warnings about 'cast to/fromdas2007-10-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkCanvUtil.c: pointer from/to integer of different * generic/tkCanvas.c: size' on 64-bit platforms by casting * generic/tkCursor.c: to intermediate types * generic/tkInt.h: intptr_t/uintptr_t via new PTR2INT(), * generic/tkListbox.c: INT2PTR(), PTR2UINT() and UINT2PTR() * generic/tkObj.c: macros. * generic/tkStyle.c: * generic/tkTextIndex.c: * generic/tkUtil.c: * generic/ttk/ttkTheme.h: * generic/ttk/ttkTreeview.c: * unix/tkUnixMenu.c: * unix/configure.in: * unix/configure: autoconf-2.59 * unix/tkConfig.h.in: autoheader-2.59 FossilOrigin-Name: a5a2868bd786806ab6e48d4de625258a70129d94
* | header cleanupdgp2007-09-071-2/+1
| | | | | | FossilOrigin-Name: 04ffea40ef0b3c0cad59a3e1576275019f29e913
* | Less of that K&R or wrongly indented function header style!dkf2007-02-221-136/+139
| | | | | | FossilOrigin-Name: 9b0470e090f9e2ece65f8399b3c318ab16e668d9
* | ANSIfy and reduce casting of NULL to promote readabilitydkf2005-11-171-3/+3
| | | | | | FossilOrigin-Name: b6c2c77cac3cacef0e58af5c6be63af4359a2949
* | tip256 implementationvincentdarley2005-10-101-9/+1
| | | | | | FossilOrigin-Name: b26b042c687a34c89798f90861d4035a87ee6212
* | Getting more systematic about styledkf2005-08-101-571/+635
| | | | | | | | | | | | | | Also start removing _ANSI_ARGS_; the core's required ANSI C for a while now Also fix [Bug 1252702]; size_t doesn't mix with Tcl_GetStringFromObj FossilOrigin-Name: 95ed0f915e157968e866e731484ea64d379250ec
* | fix to newline eliding in text widgetvincentdarley2005-02-141-11/+33
| | | | | | FossilOrigin-Name: 46ac803ae4b55ceb29a03cd1aa950ad4d8792a0f
* | fix init warningshobbs2004-10-051-2/+2
| | | | | | FossilOrigin-Name: 957f9825bf8558295cb1e9b9874f98fb90aa8090
* | text widget 'peer' subcommand -- TIP#169 implementationvincentdarley2004-09-101-59/+157
| | | | | | FossilOrigin-Name: 24c87e87ffd71144101ff6cab47226828e813d38
* | text widget fixesvincentdarley2004-06-041-1/+9
| | | | | | FossilOrigin-Name: cb4cc14bf47525593a3b1284aee97eaf664af9f3