Skip to content

Commit f1717f2

Browse files
committed
update based on code review
1 parent 2a003d8 commit f1717f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSReadLine/Render.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ private void PlaceCursor()
535535
private int LengthInBufferCells(char c)
536536
{
537537
int length = char.IsControl(c) ? 1 : 0;
538-
if (!IsAvailableFarEastCodePage())
538+
if (c < 256 || !IsAvailableFarEastCodePage())
539539
{
540540
return length + 1;
541541
}

0 commit comments

Comments
 (0)