Skip to content

Conversation

@tanloong
Copy link
Contributor

@tanloong tanloong commented Oct 19, 2025

This skips handling the wrapping in self.__write_changed_line() when wlen(newline)==self.width, and simply updates self.posxy (explained in #140131 (comment)).

One thing that happens after the skip is that the cursor moves leftward by one character on Tab key:

WindowsTerminal_eDpHfMhTvA.mp4

As noted in this comment, "when writing to the final character on the line, the cursor location is effectively moved one element backwards." So, we account for this 1-character offset by setting the cursor column to a maximum of self.width-1.

WindowsTerminal_0fSumUhJoh.mp4

@tanloong tanloong marked this pull request as ready for review October 20, 2025 14:32
@tanloong tanloong marked this pull request as draft October 20, 2025 15:35
@tanloong tanloong marked this pull request as ready for review October 25, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant