summaryrefslogtreecommitdiffstats
path: root/generic/tkTextIndex.c
Commit message (Collapse)AuthorAgeFilesLines
* Change more refCount checks to the form "(...refCount-- <= 1)", so no ↵jan.nijtmans2017-01-181-1/+1
| | | | 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-2/+2
| |
| * Rename TkUtfToUniChar32 to TkUtfToUniChar2, and various simplifications ↵jan.nijtmans2016-09-161-12/+4
| | | | | | | | needing less #ifdef's
| * Patch from Christian Werner, for evaluationjan.nijtmans2016-09-161-2/+10
| |
| * Eliminate use of Tcl_SetResult(), and CONST -> constjan.nijtmans2016-03-151-9/+9
|/
* Fixed bug [3f1f79abcf] - Text widget crash when seeing or bboxing (or ↵fvogel2015-07-131-1/+1
|\ | | | | | | selecting, moving the cursor...) in elided text
| * Fixed bug [3f1f79abcf] - Text widget crash when seeing or bboxing (or ↵fvogel2015-07-101-1/+1
| | | | | | | | selecting, moving the cursor...) in elided text
* | [562118ce41] Fix wordstart modifier handling of multi-byte charsdgp2015-04-091-5/+14
|\ \ | |/
| * [562118ce41] Fix wordstart modifier handling of multi-byte charsdgp2015-04-091-5/+14
| |\
| | * Fix typo in commentfvogel2015-04-071-1/+1
| | |
| | * Fix wordstart modifier for UTF-8 text - Bug [562118ce41]fvogel2015-04-071-4/+13
| | |
* | | [e4ed00a954] Fixed crash with display wordstartdgp2015-04-091-1/+1
|\ \ \ | |/ /
| * | Fixed crash with display wordstart - Bug [e4ed00a954]bug_e4ed00a954fvogel2015-04-081-1/+1
| |/
* | Merge bug fixes from fvogel's text-elided branchdgp2015-02-061-0/+87
|\ \ | |/
| * merge 8.5dgp2015-02-061-2/+2
| |\
| * | 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.
* | | [c9535cd7ce] GetIndex() failed to route all successful exits through code ↵dgp2015-02-061-2/+2
|\ \ \ | | |/ | |/| | | | that writes a result through the canCachePtr.
| * | [c9535cd7ce] GetIndex() failed to route all successful exits through codedgp2015-02-061-2/+2
| |/ | | | | that writes a result through the canCachePtr.
* | 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.
* | [Bug 3588824]: bug in image index handling for weird image namesdgp2012-12-041-3/+13
|\ \ | |/
| * [Bug 3588824]: bug in image index handling for weird image namesdgp2012-12-041-3/+13
| |\
| | * [Bug 3588824]: bug in image index handling for weird image namesfvogel2012-11-221-3/+12
| | |
* | | more auditing of error codesdkf2012-07-301-5/+4
| | |
* | | Working towards making the error codes more consistent.dkf2012-07-301-1/+1
| | |
* | | Much more cleaning up of result handling.dkf2012-07-231-9/+11
| | |
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| * | * 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:
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-11/+11
| | | | | | | | | using useful casts internally.
* | | [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.)
* | | * 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:
* | | * 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:
* | | 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.
* | | Make TkTextMakeByteIndex implementation agree with the prototype (const-ness)patthoyts2008-12-051-2/+2
| | |
* | | Lots of small changes to make code more pretty and C89-like.dkf2008-11-081-3/+3
| | |
* | | 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.
* | | Greatly clean up Tk's handling of the writability of the Tcl result object.dkf2008-10-051-4/+3
| | |
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-47/+45
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * 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
* | header cleanupdgp2007-09-071-2/+1
| |
* | Less of that K&R or wrongly indented function header style!dkf2007-02-221-136/+139
| |
* | ANSIfy and reduce casting of NULL to promote readabilitydkf2005-11-171-3/+3
| |
* | tip256 implementationvincentdarley2005-10-101-9/+1
| |
* | 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
* | fix to newline eliding in text widgetvincentdarley2005-02-141-11/+33
| |
* | fix init warningshobbs2004-10-051-2/+2
| |
* | text widget 'peer' subcommand -- TIP#169 implementationvincentdarley2004-09-101-59/+157
| |