Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite COOKED_READ_DATA #15783

Merged
merged 14 commits into from
Aug 25, 2023
1 change: 1 addition & 0 deletions .github/actions/spelling/expect/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1300,6 +1300,7 @@ onecoreuuid
ONECOREWINDOWS
onehalf
oneseq
OOM
openbash
opencode
opencon
Expand Down
2 changes: 1 addition & 1 deletion src/host/_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ void WriteCharsLegacy(SCREEN_INFORMATION& screenInfo, const std::wstring_view& t
// Otherwise handling backspacing tabs/whitespace can turn up complex and bug-prone.
assert(!interactive);
auto pos = cursor.GetPosition();
pos.x = textBuffer.GetRowByOffset(pos.y).NavigateToPrevious(pos.x);
pos.x = textBuffer.GetMutableRowByOffset(pos.y).NavigateToPrevious(pos.x);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did this one require mutability?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, yeah, good point.

AdjustCursorPosition(screenInfo, pos, interactive, psScrollY);
continue;
}
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.