summaryrefslogtreecommitdiff
path: root/point.cpp
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 /point.cpp
parentcce3749761fc036f196cb50319c591f5d1fa5625 (diff)
downloadjet-19644585485799d19bf98035c8b2b2b1ab402c5f.tar.gz
jet-19644585485799d19bf98035c8b2b2b1ab402c5f.zip
Fix unicode break on border between pages
Diffstat (limited to 'point.cpp')
-rw-r--r--point.cpp1
1 files changed, 1 insertions, 0 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;