summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2020-06-20 18:48:48 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2020-06-20 18:48:48 -0300
commit19644585485799d19bf98035c8b2b2b1ab402c5f (patch)
tree42c5141badb945d663782ac4af3a68a588d8f6c4
parentcce3749761fc036f196cb50319c591f5d1fa5625 (diff)
downloadjet-19644585485799d19bf98035c8b2b2b1ab402c5f.tar.gz
jet-19644585485799d19bf98035c8b2b2b1ab402c5f.zip
Fix unicode break on border between pages
-rw-r--r--point.cpp1
-rw-r--r--unicode.txt2
2 files changed, 2 insertions, 1 deletions
diff --git a/point.cpp b/point.cpp
index 8f05a46..a331cb7 100644
--- a/point.cpp
+++ b/point.cpp
@@ -140,6 +140,7 @@ struct Point {
for (size_t i = 1; i < type; i++) {
rune <<= 6;
iter.move_forward();
+ if (iter.index == 0) iter.move_forward();
rune |= (iter.next_byte() & 0x3f);
}
return rune;
diff --git a/unicode.txt b/unicode.txt
index 65e62b3..5bcdd50 100644
--- a/unicode.txt
+++ b/unicode.txt
@@ -1 +1 @@
-$¢ह€한😁
+e$¢ह€한😁