summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix "Delete" and "Backspace" for text widgetsjan.nijtmans2020-05-271-2/+2
|
* Rename utility functions. Make Delete and Backspace work toojan.nijtmans2020-05-2738-442/+495
|\
| * A few more tweaks, using size_t in Tcl 9 builds.jan.nijtmans2020-05-273-39/+38
| |
| *-. Add Clang++ build to Travis on MacOS. Use more size_t internally, when ↵jan.nijtmans2020-05-2734-389/+434
| |\ \ | | | | | | | | | | | | compiled against Tcl 9 headers. No change when compiled against Tcl 8.
| | | * Convert Tk_ItemIndexProc/Tk_ItemInsertProc to use size_t as index type, when ↵jan.nijtmans2020-05-2614-289/+304
| | | | | | | | | | | | | | | | compiled against Tcl 9 headers. Various more fixes in using size_t for Tcl >= 9
| | | * Negative "slaveIndex" means out-of-bounds too.jan.nijtmans2020-05-251-1/+1
| | | |
| | | * Formatting and even more size_t usage.jan.nijtmans2020-05-2531-116/+134
| | | |\ | | |_|/ | |/| |
| | * | Fix C++ build for MacOSjan.nijtmans2020-05-261-1/+1
| | | |
| | * | Clang++ build for MacOSjan.nijtmans2020-05-261-7/+19
| |/ /
* | | A different approach to glyph indexingjan.nijtmans2020-05-264-10/+76
|/ /
* | Use more size_t type internally, when compiling against Tcl 9.0 headers. No ↵jan.nijtmans2020-05-2536-317/+371
|\ \ | |/ | | | | | | change when using Tcl 8.x. Add C++ travis build for TCL_UTF_MAX=4 (compat with Tcl 8.7) and TCL_UTF_MAX=6 (compat with Tcl 9.0) making sure that C++'s strict typing stays correct.
| * Fix 2 (minor) gcc warningsjan.nijtmans2020-05-242-2/+2
| |
| * More progressjan.nijtmans2020-05-2411-83/+83
| |
| * Merge trunk. Also (really) fix build against Tcl 8.6 TCL_UTF_MAX=6 nowjan.nijtmans2020-05-247-13/+73
| |\ | |/ |/|
* | Merge implementation of TIP #574 following acceptation by vote.fvogel2020-05-245-11/+67
|\ \
| * | A few cosmetic changesfvogel2020-05-082-10/+9
| | |
| * | Add test treetags-1.11 testing [.tree tag delete]. Also remove old proc in ↵fvogel2020-05-081-3/+8
| | | | | | | | | | | | since Tcl features this operator natively. By Emiliano Gavilan.
| * | Fix [1bb2f1d7ab]: ttk::treeview doesn't delete tags. Patch from Emiliano ↵fvogel2020-05-084-0/+52
| | | | | | | | | | | | Gavilan.
* | | Merge 8.6jan.nijtmans2020-05-231-0/+4
|\ \ \
| * \ \ Put back comment about "tcl_wordchars" variable: it is still correctjan.nijtmans2020-05-231-0/+4
| |\ \ \
| | * | | Put back comment, which shouldn't have been removed in the previous commit.jan.nijtmans2020-05-231-0/+4
| | | | |
| | | | * Merge trunk. Fix C++ builds, also for TCL_UTF_MAX=4 and TCL_UTF_MAX=6jan.nijtmans2020-05-235-23/+34
| | | | |\ | |_|_|_|/ |/| | | |
* | | | | Merge 8.6jan.nijtmans2020-05-222-19/+16
|\ \ \ \ \ | |/ / / /
| * | | | Merge 8.5jan.nijtmans2020-05-221-15/+15
| |\ \ \ \ | | |/ / /
| | * | | Update MacOSX build from xcode11.4 to xcode11.5jan.nijtmans2020-05-222-16/+15
| | | | |
| * | | | Remove incorrect reference to tcl_wordchars, it isn't used any more.jan.nijtmans2020-05-221-4/+1
| | | | |
* | | | | Don't use TCL_AUTO_LENGTH in Tk any more, just use TCL_INDEX_NONE ↵jan.nijtmans2020-05-2235-777/+773
| | | | | | | | | | | | | | | | | | | | consistantly everywhere: It's actually the same.
| | | | * More progressjan.nijtmans2020-05-2258-961/+966
| | | | |\ | |_|_|_|/ |/| | | |
* | | | | Revert part of [27e083eed755bf65], which broke the Windows build.jan.nijtmans2020-05-221-5/+5
| | | | |
| | | | * Minor compiler warningjan.nijtmans2020-05-221-1/+1
| | | | |
| | | | * More progressjan.nijtmans2020-05-215-17/+38
| | | | |
| | | | * Use more size_t for *Sel*-related functions, in case compiling with Tcl 9jan.nijtmans2020-05-219-85/+95
| |_|_|/ |/| | |
* | | | Slightly biger "lenght" variables, in case we are using Tcl 9jan.nijtmans2020-05-203-4/+4
| | | |
* | | | Fix compiler warning: macOS string length is unsigned.culler2020-05-201-1/+1
|\ \ \ \ | |/ / /
| * | | Fix compiler warning: macOS string length is unsigned.culler2020-05-201-1/+1
| | | |
* | | | Merge 8.6. Protection done by TkUtfAtIndex() not needed here, because ↵jan.nijtmans2020-05-205-31/+17
|\ \ \ \ | |/ / / | | | | | | | | Tcl_UtfAtIndex() in Tcl 8.7 already does that.
| * | | Add (and use) new internal function TkUtfAtIndex(), which does the same as ↵jan.nijtmans2020-05-2012-61/+79
| |\ \ \ | | | | | | | | | | | | | | | Tcl_UtfAtIndex() only it protects against ending in the middle of a 4-byte UTF-8 sequence. This should fix another part of [a179564826] when handling copy-pasted Emoji in Text/Entry (and other) widgets.
| | * | | Fix TkUtfAtIndex(), still was not 100% correct.jan.nijtmans2020-05-204-26/+9
| | | | | | | | | | | | | | | Simplify TKNSString::DString, since Tcl_UniCharToUtf() is already capable of surrogate handling with a proper Tcl version.
| | * | | > ... >=jan.nijtmans2020-05-191-1/+1
| | | | |
| | * | | Little variation on bug-a179564826, in which Character indexing is kept, but ↵jan.nijtmans2020-05-192-68/+6
| | | | | | | | | | | | | | | | | | | | with surrogate protection
| | * | | Use Glyph indexing in more places (underscoring and canvas text and some more)jan.nijtmans2020-05-198-30/+30
| | | | |
| | * | | Merge 8.6jan.nijtmans2020-05-191-0/+7
| | |\ \ \ | | |/ / / | |/| | |
| | * | | Add TkUtfCharComplete(), and use it in TkNumUtfChars()jan.nijtmans2020-05-192-3/+19
| | |\ \ \
| | * | | | Add surrogate-aware TkUtfAtIndex and TkNumUtfChars. This is enough to allow ↵culler2020-05-196-31/+115
| | | | | | | | | | | | | | | | | | | | | | | | editing emoji text (without variant selectors) in Entry widgets on macOS.
| | * | | | Merge 8.6jan.nijtmans2020-05-1819-321/+241
| | |\ \ \ \
| | * \ \ \ \ More improvements handling characters > U+FFFF as surrogates. Add internal ↵jan.nijtmans2020-05-1459-1209/+3277
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | TkUtfPrev(), which handles jumping back over surrogate pairs.
* | | | | | | | Make Tk on MacOS work (again) with Tcl 9. Remove two debug lines.jan.nijtmans2020-05-202-3/+1
| | | | | | | |
* | | | | | | | Merge 8.6jan.nijtmans2020-05-193-3/+41
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | New (internal) function TkUtfPrev(). This function can handle 4-byte ↵jan.nijtmans2020-05-193-3/+42
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | (illegal) byte-sequences, arising when pasting Emoji on a Text widget on MacOS (for example)
* | | | | | | Fix some deprecation/unused parameter compiler warningsjan.nijtmans2020-05-192-11/+11
| | | | | | |