Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
term: adjust logical line wrapping behavior
Really, this is adjusting the logical line breaking behavior, or the lack thereof. The situation is this: conpty can decided to reinterpret and flush large sections of its buffer as a continuous stream of unbroken characters with no breaks when it repaints the full screen. When we receive such an update, we see it as one long logical line, and when we subsequently select multiple lines we can run into the maximum logical line length and insert invalid synthetic line breaks into the data that we send to the clipboard. This commit adjusts the wrapping logic at the time that we receive the text so that we don't tag the line as a logical line continuation if: * The alt screen is active. Full screen apps will re-render on resize anyway, and we don't reflow long lines on resize either for the same reasons * If we are talking to ConPTY: * If the last character in the line is not alphanumeric or punctuation (in other words: it doesn't look plausibly like text that should be a line continuation). refs: #3278 refs: #3177
- Loading branch information