Closed Neob91 closed 3 years ago
yes, this is un-avoidable as otherwise it is not possible to sync the current scroll position with less. To fix it would require implementing a better pager than less. Which is on my TODO list for someday, but not soon.
The same behavior is true for neovim as pager. It seems there is no workaround for it except using tmux. But using it introduce too much latency/performance penalty.
Describe the bug Copying a single-line output that was wrapped because of its length using the scrollback buffer, results in newlines being added at the wrap positions.
To Reproduce Steps to reproduce the behavior:
less
for the scrollback buffer, but I'm not sure it matters).Expected behavior The line is copied without newlines (as it would be using standalone
less
)Screenshots Pasted when copied from terminal directly (first) and pasted when copied from scrollback buffer (second):
Copied from:
Environment details OS: MacOS Catalina 10.15.7
Additional context Managed to reproduce with
kitty --config NONE
(the shortcut for the scrollback buffer is then ctrl+shift+h)