aboutsummaryrefslogtreecommitdiff
path: root/src/clint.py
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-02-10 11:03:59 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2018-06-13 10:11:11 +0200
commitd8e18c96a904667ce60366be22dbdf248006ff2e (patch)
treed4d71e26b159e59b15ef2b210453baae4be0b3c8 /src/clint.py
parent315b7f8632076d882d498fc0bfab21a87ca75acb (diff)
downloadrneovim-d8e18c96a904667ce60366be22dbdf248006ff2e.tar.gz
rneovim-d8e18c96a904667ce60366be22dbdf248006ff2e.tar.bz2
rneovim-d8e18c96a904667ce60366be22dbdf248006ff2e.zip
screen: use UTF-8 representation
Store text in ScreenLines as UTF-8, so it can be sent as-is to the UI layer. `utfc_char2bytes(off,buf)` is removed, as `ScreenLines[off]` now already contains this representation. To recover the codepoints that the screen arrays previously contained, use utfc_ptr2char (or utf_ptr2char to ignore composing chars). NB: This commit does NOT change how screen.c processes incoming UTF-8 data from buffers, cmdline, messages etc. Any algorithm that operates on UCS-4 (like arabic shaping, treatment of non-printable chars) is left unchanged for now.
Diffstat (limited to 'src/clint.py')
0 files changed, 0 insertions, 0 deletions