Skip to content

Commit 61fc4ca

Browse files
committed
Fix charset drawing
Fixes xtermjs#1565
1 parent 0545cfa commit 61fc4ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/InputHandler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,9 @@ export class InputHandler extends Disposable implements IInputHandler {
359359
chWidth = wcwidth(code);
360360

361361
// get charset replacement character
362-
// FIXME: Should code be replaced as well?
363362
if (charset) {
364363
char = charset[char] || char;
364+
code = char.charCodeAt(0);
365365
}
366366

367367
if (screenReaderMode) {

0 commit comments

Comments
 (0)