summaryrefslogtreecommitdiffstats
path: root/generic/tkTextIndex.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix Tk_ObjCustomOption documentation. Fix some indentingjan.nijtmans2024-07-121-24/+24
|\
| * Merge 8.7. Fix indentingjan.nijtmans2024-07-121-24/+24
| |\
* | \ Merge 8.7jan.nijtmans2024-03-231-4/+4
|\ \ \ | |/ /
| * | Another round of int -> Tcl_Size. Use more (char *)NULL in stead of simply ↵jan.nijtmans2024-03-231-4/+4
| | | | | | | | | | | | NULL. Re-generate stub table, only creating dummy stub entries for TCL_MAJOR_VERSION < 9
| * | Better approach, using "Tk" prefix for UTF-32 versions of APIjan.nijtmans2024-03-141-8/+5
| | |
| * | Merge 8.6jan.nijtmans2024-02-081-3/+3
| |\ \ | | |/
* | | Fix [57b821d2db]: text index {insert wordstart} fails at 0 and 1 word start ↵fvogel2024-02-081-3/+3
|\ \ \ | | |/ | |/| | | | positions.
| * | Fix [57b821d2db]: text index {insert wordstart} fails at 0 and 1 word start ↵fvogel2024-02-031-3/+3
| | | | | | | | | | | | positions.
* | | Merge 8.7jan.nijtmans2024-01-301-2/+2
|\ \ \ | | |/ | |/|
| * | TkTextMakeByteIndex byteIndex int -> Tcl_Sizejan.nijtmans2024-01-301-2/+2
| | |
* | | Merge 8.7jan.nijtmans2024-01-251-1/+1
|\ \ \ | |/ /
| * | Eliminate many (Tcl_Size) typecasts, which are no longer necessaryjan.nijtmans2024-01-251-1/+1
| | |
* | | Remove tricky code, no longer necessary in 9.0jan.nijtmans2024-01-141-8/+0
| | |
* | | Merge 8.7jan.nijtmans2023-12-131-1/+1
|\ \ \ | |/ /
| * | Fix 2 (minor) compiler warningsjan.nijtmans2023-12-131-1/+1
| | |
| * | (Cherry-pick): Fix Tk_CharBbox/Tk_DrawTextLayout signature (int -> ↵jan.nijtmans2023-12-131-1/+1
| |\ \ | | |/ | | | | | | Tcl_Size). Update documentation.
* | | Fix Tk_CharBbox/Tk_DrawTextLayout signature (int -> Tcl_Size). Update ↵jan.nijtmans2023-12-131-1/+1
| | | | | | | | | | | | documentation.
* | | Starting work to compile Tk with TCL_UTF_MAX=4 (WIP)jan.nijtmans2023-11-271-4/+4
|/ /
* | Even more -1 -> TCL_INDEX_NONEjan.nijtmans2023-03-121-1/+1
| |
* | Merge core-8-6-branch: Eradicate uses of sprintf because it triggers ↵fvogel2023-01-181-1/+5
|\ \ | |/ | | | | deprecation warning on macOS Ventura. Resolve conflicts. Remove sprintf calls specific to the main branch.
| * Factorise definition of snprintf in tkWinInt.h (MSVC before 2015 didn't know ↵fvogel2023-01-141-6/+2
| | | | | | | | snprintf).
| * Provide explicit size in snprintf when needed. Fix gcc warning: 'argument to ↵fvogel2023-01-121-1/+1
| | | | | | | | ‘sizeof’ in ‘snprintf’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]'
| * Eradicate uses of sprintf because it triggers deprecation warning on macOS ↵fvogel2023-01-101-1/+9
| | | | | | | | Ventura. Only a single instance left in TkpPrintWindowId() (tkWinWindow.c).
* | Make Tk compile/run either with or without TIP #644: Make Tcl_ObjType extensiblejan.nijtmans2022-11-151-6/+8
| |
* | Allow TkTextSegToOffset to return a Tcl_Size. Make undoMarkId last field of ↵jan.nijtmans2022-11-011-2/+2
| | | | | | | | TkSharedText (for binary compatibility with Tk 8.6)
* | Rebase to 8.7jan.nijtmans2022-10-121-13/+13
|\ \
| * | TIP #628 for Tk: Shared 8.7/9.0 build environmentjan.nijtmans2022-06-251-13/+13
| | |
* | | Use the presence of Tcl_OpenTcpServerEx() (stub entry 631, not 656) to ↵jan.nijtmans2022-09-121-1/+1
| | | | | | | | | | | | distinguish between Tcl 8.6 and 8.7 at runtime. This needs at least TIP #575 (2021-03-15), when running under Tcl 8.7.
* | | Don't compile Tk with -DTCL_NO_DEPRECATED any more, in stead select ↵jan.nijtmans2022-09-101-0/+8
|/ / | | | | | | Tcl_UtfPrev() usage on availability: use new version if possible, otherwise (8.6) fall back to old version
* | Correct character counting bug in tkTextIndex.c, when TCL_UTF_MAX=3jan.nijtmans2022-03-221-13/+18
| |
* | TIP #613 demo: rewrite "place" and text tag handling (-elide, -overstrike, ↵jan.nijtmans2022-02-021-9/+9
| | | | | | | | -underline) using the new functionality
* | Merge 8.6jan.nijtmans2021-12-201-2/+2
|\ \ | |/
* | Fix [34db75c0ac]: Text peer widget error on Down arrow key when passed ↵fvogel2021-04-181-4/+66
|\ \ | |/ | | | | -endline line. Also, propagate the fix for [1630271fff] from marks to embedded images and windows.
| * Trying to get the index of an embedded image or window should trigger an ↵fvogel2021-04-181-4/+4
| | | | | | | | error when located outside of -startline/-endline (same as for marks, this was bug [1630271fff]).
| * Cosmetic style changesfvogel2021-04-171-4/+4
| |
| * Fix stylefvogel2021-04-131-2/+2
| |
| * Factor out two places where the -startline/-endline range is checked.fvogel2021-04-131-30/+61
| |
| * Backout dzach's patch, and propose a better patch that restricts the index ↵fvogel2021-04-111-0/+31
| | | | | | | | returned by GetIndex() to -startline/-endline thresholds.
* | Merge 8.6jan.nijtmans2021-03-231-2/+2
|\ \ | |/
| * Fix 3 places where Tcl_UtfToUniChar must be used and not TkUtfToUniChar: ↵jan.nijtmans2021-03-231-2/+2
| | | | | | | | | | numChars/charIndex is counting character indexes here; surrogate-pairs count as 2. This can cause a miscount when Emoji are pasted in a Text widget.
* | Get rid of hackery function TkUtfPrev(): No longer necessary due to TIP #575jan.nijtmans2021-03-151-3/+3
| |
* | (c) -> ©jan.nijtmans2020-12-091-2/+2
| |
* | Merge 8.6jan.nijtmans2020-09-251-1/+1
|\ \ | |/
| * More usage of TCL_UNUSED() and implicit type-casts. Eliminate "register" keywordjan.nijtmans2020-09-251-19/+19
| |
* | Formatting and even more size_t usage.jan.nijtmans2020-05-251-1/+1
| |
* | More progressjan.nijtmans2020-05-241-7/+7
| |
* | More progressjan.nijtmans2020-05-221-35/+23
|\ \
* | | More progressjan.nijtmans2020-05-211-11/+24
|/ /
* | Merge 8.6jan.nijtmans2020-05-191-3/+3
|\ \ | |/
| * New (internal) function TkUtfPrev(). This function can handle 4-byte ↵jan.nijtmans2020-05-191-3/+3
| | | | | | | | (illegal) byte-sequences, arising when pasting Emoji on a Text widget on MacOS (for example)