| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 736f17f commit 887b5f8
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1658,12 +1658,12 @@ def get_accelerator(keydefs, eventname): | |||
| 1658 | 1658 | ||
| 1659 | 1659 | ||
| 1660 | 1660 | def fixwordbreaks(root): | |
| 1661 | - # Make sure that Tk's double-click and next/previous word | ||
| 1662 | - # operations use our definition of a word (i.e. an identifier) | ||
| 1661 | + # On Windows, tcl/tk breaks 'words' only on spaces, as in Command Prompt. | ||
| 1662 | + # We want Motif style everywhere. See #21474, msg218992 and followup. | ||
| 1663 | 1663 | tk = root.tk | |
| 1664 | 1664 | tk.call('tcl_wordBreakAfter', 'a b', 0) # make sure word.tcl is loaded | |
| 1665 | - tk.call('set', 'tcl_wordchars', '[a-zA-Z0-9_]') | ||
| 1666 | - tk.call('set', 'tcl_nonwordchars', '[^a-zA-Z0-9_]') | ||
| 1665 | + tk.call('set', 'tcl_wordchars', r'\w') | ||
| 1666 | + tk.call('set', 'tcl_nonwordchars', r'\W') | ||
| 1667 | 1667 | ||
| 1668 | 1668 | ||
| 1669 | 1669 | def _editor_window(parent): # htest # | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + Update word/identifier definition from ascii to unicode. In text and entry | ||
| 2 | + boxes, this affects selection by double-click, movement left/right by | ||
| 3 | + control-left/right, and deletion left/right by control-BACKSPACE/DEL. | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments