Skip to content

Some newlines appear to be broken #4107

Closed

Description

As an example, the one you see when PowerShell starts up:

bad

image

good

image

Activity

  1. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Jan 3, 2020
  2. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Jan 3, 2020
  3. DHowett-MSFT commented on Jan 3, 2020

    @DHowett-MSFT
    ContributorAuthor

    Looks like only WT...

  4. zadjii-msft commented on Jan 4, 2020

    @zadjii-msft
    Member

    Is this a recent regression? I would have thought it might be #3271 but that hasn't merged yet.

  5. added
    Area-VTVirtual Terminal sequence support
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    on Jan 4, 2020
  6. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on Jan 4, 2020
  7. DHowett-MSFT commented on Jan 4, 2020

    @DHowett-MSFT
    ContributorAuthor

    Very. The current selfhost build from 12/31 does not exhibit this issue. Maybe related to the audit mode refactoring?

  8. j4james commented on Jan 5, 2020

    @j4james
    Collaborator

    I believe the problem is in the TerminalDispatch::CursorPosition method here:

    RETURN_BOOL_IF_FALSE(FAILED(SizeTToShort(column, &x)) ||
    FAILED(SizeTToShort(line, &y)));
    RETURN_BOOL_IF_FALSE(FAILED(ShortSub(x, 1, &x)) ||
    FAILED(ShortSub(y, 1, &y)));

    If the SizeTToShort calls succeed, then the FAILED tests are going to be false, and the RETURN_BOOL_IF_FALSE will force the method to abort.

  9. DHowett-MSFT commented on Jan 5, 2020

    @DHowett-MSFT
    ContributorAuthor

    Oof. Thanks.

  10. added a commit that references this issue on Jan 5, 2020
    ddf0e18
  11. ghost added
    In-PRThis issue has a related PR
    on Jan 5, 2020
  12. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Jan 6, 2020
  13. ghost removed
    In-PRThis issue has a related PR
    on Jan 6, 2020
  14. ghost added
    Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.
    on Jan 6, 2020
  15. added a commit that references this issue on Jan 6, 2020
    4882917
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-VTVirtual Terminal sequence supportIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.Severity-BlockingWe won't ship a release like this! No-siree.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions