From cade70e74532125bac0e0f1d8a01527ec983c68b Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Sat, 1 Sep 2007 17:04:58 +0000 Subject: [PATCH] Fix -dump with multicell characters (cherry picked from commit e0f0112de9cf81f3f387ce12d78d50ecd2547e97) --- src/viewer/dump/dump.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/viewer/dump/dump.c b/src/viewer/dump/dump.c index b89a611c9..2ea4724b2 100644 --- a/src/viewer/dump/dump.c +++ b/src/viewer/dump/dump.c @@ -915,6 +915,9 @@ utf8: if (write_char(*utf8_buf++, fd, buf, &bptr)) goto fail; } + + x += unicode_to_cell(c) - 1; + continue; }