Skip to content

Cursor misbehaves if prompt line is larger than terminal width #124

@adelgado

Description

@adelgado

When the prompt line has more characters than the terminal has columns, the cursor gets displayed overwriting the previous line. When my terminal is wide enough, here's what it might look like if I hit enter three times:

http://graph.facebook.com/v2.2?id=http%3A%2F%2Fmoviepilot.com%2Fposts%2F2587263&scrape=true>
http://graph.facebook.com/v2.2?id=http%3A%2F%2Fmoviepilot.com%2Fposts%2F2587263&scrape=true>
http://graph.facebook.com/v2.2?id=http%3A%2F%2Fmoviepilot.com%2Fposts%2F2587263&scrape=true>_

Cursor is at end of the last line and the rest of the line is empty.

However when my terminal is not wide enough:

http://graph.facebook.com/v2.2?id=http%3A%2F%2Fmoviepilot.com%2Fposts%2F2587263&263&scrape=true> book.com/v2.2?id=http%3A%2F%2Fmoviepilot.com%2Fposts%2F25872
263&scrape=true> book.com/v2.2?id=http%3A%2F%2Fmoviepilot.com%2Fposts%2F25872
263&scrape=true> book.com/v2.2?id=http%3A%2F%2Fmoviepilot.com%2Fposts%2F25872
263&scrape=true> _book.com/v2.2?id=http%3A%2F%2Fmoviepilot.com%2Fposts%2F25872

Cursor is below the first letter b of the last line and the rest of the line is munged content from the line above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions