aboutsummaryrefslogtreecommitdiff
path: root/utf8.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master'Thomas Adam2019-11-25
|\
| * Add p format modifier for padding to width.nicm2019-11-25
| |
* | Merge branch 'obsd-master'Thomas Adam2019-05-26
|\|
| * Add formats for word and line under the mouse and use them to add somenicm2019-05-26
| | | | | | | | items to the pane menu.
* | Merge branch 'obsd-master'Thomas Adam2019-05-23
|\|
| * Environment variables can start with { also.nicm2019-05-23
| |
* | Merge branch 'obsd-master'Thomas Adam2019-05-23
|\|
| * Break the argument escaping code into a separate function and use it tonicm2019-05-23
| | | | | | | | escape key bindings in list-keys. Also escape ~ and ; and $ properly.
* | Merge branch 'obsd-master'Thomas Adam2019-03-18
|\|
| * Extend the #[] style syntax and use that together with previous formatnicm2019-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changes to allow the status line to be entirely configured with a single option. Now that it is possible to configure their content, enable the existing code that lets the status line be multiple lines in height. The status option can now take a value of 2, 3, 4 or 5 (as well as the previous on or off) to configure more than one line. The new status-format array option configures the format of each line, the default just references the existing status-* options, although some of the more obscure status options may be eliminated in time. Additions to the #[] syntax are: "align" to specify alignment (left, centre, right), "list" for the window list and "range" to configure ranges of text for the mouse bindings. The "align" keyword can also be used to specify alignment of entries in tree mode and the pane status lines.
* | Merge branch 'obsd-master'Thomas Adam2017-06-05
|\| | | | | | | | | | | Conflicts: tmux.1 window.c
| * Remove unused variable.nicm2017-06-04
| |
| * Be more strict about escape sequences that rename windows or set titles:nicm2017-06-04
| | | | | | | | | | ignore any that not valid UTF-8 outright, and for good measure pass the result through our UTF-8-aware vis(3).
* | Merge branch 'obsd-master'Thomas Adam2017-06-01
|\| | | | | | | | | Conflicts: window-buffer.c
| * Style and spacing nits.nicm2017-05-31
| |
| * Fix a couple of argument types.nicm2017-03-17
| |
* | Bad merge.Nicholas Marriott2017-03-21
| |
* | Merge branch 'obsd-master'Thomas Adam2017-01-18
|\|
| * Plain stravis() because it will mangle UTF-8 characters, so addnicm2017-01-18
| | | | | | | | utf8_stravis() which calls our existing utf8_strvis() and use it instead
* | Merge branch 'obsd-master'Thomas Adam2016-10-12
|\| | | | | | | | | | | Conflicts: format.c osdep-openbsd.c
| * Support UTF-8 entry into the command prompt.nicm2016-10-11
| |
* | Add support for using utf8proc with --enable-utf8proc, useful for platformsNicholas Marriott2016-09-01
| | | | | | | | (like OS X) where the system implementation is crap. From Joshua Rubin.
* | Merge branch 'obsd-master'Thomas Adam2016-05-28
|\|
| * Most of the utf8_data is fixed so simplify utf8_set to use a memcpy.nicm2016-05-27
| |
* | Only assume width 1 when wcwidth() returns -1 on non-OpenBSD platforms.Nicholas Marriott2016-04-29
| |
* | Merge branch 'obsd-master'Thomas Adam2016-04-29
|\|
| * OpenBSD wcwidth() is sensible and complete so if it returns -1 it meansnicm2016-04-29
| | | | | | | | | | that a character is not printable, so return to ignoring such characters.
* | Merge branch 'obsd-master'Thomas Adam2016-04-27
|\|
| * Loads of platforms appear to have old or broken Unicode character typenicm2016-04-27
| | | | | | | | | | | | information and are missing widths for relatively common Unicode characters (so mbtowc() works, but wcwidth() fails). So if wcwidth() returns -1, assume a width of 1 instead of ignoring the character.
* | Merge branch 'obsd-master'Thomas Adam2016-04-26
|\|
| * Log wcwidth() and mbtowc() failure to make it easier to debug a Unicodenicm2016-04-26
| | | | | | | | codepoint not appearing.
* | +wchar.hNicholas Marriott2016-03-02
| |
* | Merge branch 'obsd-master'Thomas Adam2016-03-02
|\| | | | | | | | | Conflicts: utf8.c
| * Handle wcwidth() and mbtowc() failures in better style and dropnicm2016-03-02
| | | | | | | | | | characters where we can't find the width (wcwidth() fails) on input, the same as we drop invalid UTF-8. Suggested by schwarze@.
| * Use system wcwidth() instead of carrying around UTF-8 width tables.nicm2016-03-01
| |
* | Merge branch 'obsd-master'Thomas Adam2016-01-31
|\|
| * Whoops, need this for the previous reverse trim commit too.nicm2016-01-31
| |
* | Merge branch 'obsd-master'Thomas Adam2016-01-19
|\|
| * I no longer use my SourceForge address so replace it.nicm2016-01-19
| |
* | Merge branch 'obsd-master'Thomas Adam2015-11-21
|\| | | | | | | | | Conflicts: tmux.h
| * Memory leaks and an uninitialized part of utf8_data, from Patrick Palka.nicm2015-11-20
| |
* | Merge branch 'obsd-master'Thomas Adam2015-11-14
|\|
| * The private use area at U+E000 to U+F8FF is not very useful if it isnicm2015-11-14
| | | | | | | | width 0, make it width 1 instead.
* | Merge branch 'obsd-master'Thomas Adam2015-11-14
|\|
| * All these return values from utf8_* are confusing, use an enum.nicm2015-11-14
| |
| * Rename a variable in utf8_combine for consistency and use 0xfffd fornicm2015-11-14
| | | | | | | | unknown Unicode.
* | Merge branch 'obsd-master'Thomas Adam2015-11-14
|\|
| * Be more strict about invalid UTF-8.nicm2015-11-14
| |
* | Merge branch 'obsd-master'Thomas Adam2015-11-13
|\| | | | | | | | | Conflicts: Makefile
| * Long overdue change to the way we store cells in the grid: now, insteadnicm2015-11-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of storing a full grid_cell with UTF-8 data and everything, store a new type grid_cell_entry. This can either be the cell itself (for ASCII cells), or an offset into an extended array (per line) for UTF-8 data. This avoid a large (8 byte) overhead on non-UTF-8 cells (by far the majority for most users) without the complexity of the shadow array we had before. Grid memory without any UTF-8 is about half. The disadvantage that cells can no longer be modified in place and need to be copied out of the grid and back but it turned out to be lot less complicated than I expected.