Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ public override void SetBufferContents(Coordinates origin,
{
PSTraceSource.NewArgumentNullException("contents");
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please revert the extra change.

//if the cursor is on the last line, we need to make more space to print the specified buffer
if (origin.Y == BufferSize.Height - 1 && origin.X >= BufferSize.Width)
{
Expand All @@ -1756,6 +1756,14 @@ public override void SetBufferContents(Coordinates origin,
}
}

#if UNIX
// Make sure that the physical cursor position matches where we think it is.
// This is a problem on *nix, because input that the user types is echoed
// and that moves the cursor. As a consequence, the cursor needs to be repositioned
// before we update the screen.
CursorPosition = origin;
#endif

//iterate through the buffer to set
foreach (var charitem in contents)
{
Expand Down