Fix unicode bug
This commit is contained in:
parent
a74031c1c8
commit
bdc0c4644e
1 changed files with 1 additions and 1 deletions
|
@ -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, " ");
|
||||||
|
|
Loading…
Reference in a new issue