summaryrefslogtreecommitdiffstats
path: root/utf8.c
AgeCommit message (Collapse)Author
2023-09-19Restore utf8proc code.Nicholas Marriott
2023-09-17Merge branch 'obsd-master'Thomas Adam
2023-09-15Change UTF-8 combining to inspect the previous character at the cursornicm
position rather than keeping the last character from the input stream, this is how most terminals work and fixes problems with displaying these characters in vim. GitHub issue 3600.
2023-09-01Use %05X not %08X.Nicholas Marriott
2023-09-01Merge branch 'obsd-master'Thomas Adam
2023-09-01Rewrite combined character handling to be more consistent and to supportnicm
newer Unicode combined characters (which we have to "know" are combined since they are not width zero). GitHub issue 3600.
2023-07-03Merge branch 'obsd-master'Thomas Adam
2023-07-03Another warning fix for GCC from Thomas Klausner.nicm
2023-07-01Merge branch 'obsd-master'Thomas Adam
2023-06-30Change a few types to fix warnings, from Thomas Klausner.nicm
2023-01-08portable: fixup merge with utf8.cThomas Adam
2023-01-08Merge branch 'obsd-master'Thomas Adam
2023-01-08Restore code to handle wcwidth failure so that unknown codepoints stillNicholas Marriott
do the most likely right thing. GitHub issue 3427, patch based on an diff from Jesse Luehrs in GitHub issue 3003.
2023-01-08Restore code to handle wcwidth failure so that unknown codepoints stillnicm
do the most likely right thing. GitHub issue 3427, patch based on an diff from Jesse Luehrs in GitHub issue 3003.
2023-01-06Missing #endif.Nicholas Marriott
2023-01-06Merge branch 'obsd-master'Thomas Adam
2022-12-16Make U+FE0F VARIATION SELECTOR-16 change the width from 1 to 2. GitHubnicm
issue 3409.
2021-12-06Remove fallback for wcwidth failure, GitHub issue 3003.Nicholas Marriott
2021-06-10More accurate vi(1) word navigation in copy mode and on the status line.nicm
This changes the meaning of the word-separators option - setting it to the empty string is equivalent to the previous behavior. From Will Noble in GitHub issue 2693.
2021-05-13More accurate vi(1) word navigation in copy mode and on the status line. ThisNicholas Marriott
changes the meaning of the word-separators option - setting it to the empty string is equivalent to the previous behavior. From Will Noble in GitHub issue 2693.
2021-02-10Restore utf8proc bits that went missing, GitHub issue 2564.Nicholas Marriott
2020-09-30Fix some warnings, GitHub issue 2382.Nicholas Marriott
2020-09-16Fix some warnings, GitHub issue 2382.nicm
2020-07-21Merge branch 'obsd-master'Thomas Adam
2020-07-21Fix show-buffer when run from inside tmux, GitHub issue 2314.nicm
2020-06-09Merge branch 'obsd-master'Thomas Adam
2020-06-09Include width in error message.nicm
2020-06-09Merge branch 'obsd-master'Thomas Adam
2020-06-09It is not sensible to store pointers into an array we are going tonicm
realloc (duh), use two trees instead.
2020-06-06Merge branch 'obsd-master'Thomas Adam
2020-06-06Use bitshifts instead of a union for encoding UTF-8 into 32 bits, whichnicm
is more friendly to GCC3. Reported by and ok aoyama@.
2020-06-02Merge branch 'obsd-master'Thomas Adam
2020-06-02Allow UTF-8 characters of width 0 to be stored, it is useful to be ablenicm
to put padding cells in as width 0.
2020-06-02Merge branch 'obsd-master'Thomas Adam
2020-06-02UTF-8 keys need to be big endian so the size bits are at the top.nicm
2020-06-02Merge branch 'obsd-master'Thomas Adam
2020-06-02Fail rather than fatal on UTF-8 width 0.nicm
2020-05-26Merge branch 'obsd-master'Thomas Adam
2020-05-26Return new character properly when converting to data.nicm
2020-05-26Remove bad merge.Nicholas Marriott
2020-05-26Put the fix back for wcwidth() failing.Nicholas Marriott
2020-05-26Merge branch 'obsd-master'Thomas Adam
2020-05-25Use the internal representation for UTF-8 keys instead of wchar_t andnicm
drop some code only needed for that.
2020-05-25Tidy up new UTF-8 code and make it more generic.nicm
2020-05-25Merge branch 'obsd-master'Thomas Adam
2020-05-25Make some data types consistent.nicm
2020-05-25Merge branch 'obsd-master'Thomas Adam
2020-05-25Instead of storing all UTF-8 characters in the extended cell which meansnicm
that 14 bytes are wasted for each character in the BMP, only store characters of three bytes or less in the cell itself and store others (outside the BMP or with combining characters) in a separate global tree. Can reduce grid memory use for heavy Unicode users by around 30%.
2019-11-25Merge branch 'obsd-master'Thomas Adam
2019-11-25Add p format modifier for padding to width.nicm