Display spans correctly when there are non-half-width characters

This commit is contained in:
Wonwoo Choi
2017-11-02 10:25:54 +09:00
parent 2be4cc0402
commit 272c2faa1d
14 changed files with 231 additions and 16 deletions

View File

@@ -433,6 +433,7 @@ impl<'a> StringReader<'a> {
self.filemap.record_multibyte_char(self.pos, new_ch_len);
}
}
self.filemap.record_width(self.pos, new_ch);
} else {
self.ch = None;
self.pos = new_pos;