Fix unicode bug

This commit is contained in:
Zachary Yedidia 2016-03-11 15:39:22 -05:00
parent a74031c1c8
commit bdc0c4644e

View file

@ -95,7 +95,7 @@ class View {
} }
} else { } else {
if (e.ch != 0) { if (e.ch != 0) {
buf.insert(cursor.loc, to!string(to!char(e.ch))); buf.insert(cursor.loc, to!string(to!dchar(e.ch)));
cursorRight(); cursorRight();
} else if (e.key == Key.space) { } else if (e.key == Key.space) {
buf.insert(cursor.loc, " "); buf.insert(cursor.loc, " ");