From bdc0c4644e191fda9b9940d9fbd1631e28595390 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Fri, 11 Mar 2016 15:39:22 -0500 Subject: [PATCH] Fix unicode bug --- src/view.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view.d b/src/view.d index e3e2e297..e9dbd4e7 100644 --- a/src/view.d +++ b/src/view.d @@ -95,7 +95,7 @@ class View { } } else { 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(); } else if (e.key == Key.space) { buf.insert(cursor.loc, " ");