File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,8 @@ export class InputHandler extends Disposable implements IInputHandler {
335
335
for ( let stringPosition = start ; stringPosition < end ; ++ stringPosition ) {
336
336
char = data . charAt ( stringPosition ) ;
337
337
code = data . charCodeAt ( stringPosition ) ;
338
+ console . log ( 'char' , char ) ;
339
+ console . log ( 'code' , code ) ;
338
340
339
341
// surrogate pair handling
340
342
if ( 0xD800 <= code && code <= 0xDBFF ) {
@@ -359,9 +361,9 @@ export class InputHandler extends Disposable implements IInputHandler {
359
361
chWidth = wcwidth ( code ) ;
360
362
361
363
// get charset replacement character
362
- // FIXME: Should code be replaced as well?
363
364
if ( charset ) {
364
365
char = charset [ char ] || char ;
366
+ code = char . charCodeAt ( 0 ) ;
365
367
}
366
368
367
369
if ( screenReaderMode ) {
You can’t perform that action at this time.
0 commit comments