Allow inserting non-BMP characters
commit703ac3ea1c1ce381f385469a0e88bc29d3fe83c2
authorPhilipp Stephani <phst@google.com>
Mon, 25 Dec 2017 21:00:00 +0000 (25 22:00 +0100)
committerPhilipp Stephani <phst@google.com>
Sun, 7 Jan 2018 18:42:57 +0000 (7 19:42 +0100)
tree1705907cf4ad37a8a3c40f094cbd0a751a4571c5
parent95d0be0ae596b9f9f8b100576ca5d53a681e329c
Allow inserting non-BMP characters

* src/coding.h (UTF_16_HIGH_SURROGATE_P, UTF_16_LOW_SURROGATE_P): Move
from coding.c and document.
(surrogates_to_codepoint): New function.

* src/nsterm.m (insertText:): Properly handle surrogate pairs.
src/coding.c
src/coding.h
src/nsterm.m