FS#77043 - [vim] 9.0.1046-1: Pasting with mouse broken in tmux, updating vim solves the issue

Attached to Project: Arch Linux
Opened by Pascal Ernster (hardfalcon) - Sunday, 08 January 2023, 08:03 GMT
Last edited by Morten Linderud (Foxboron) - Thursday, 12 January 2023, 14:56 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
Morten Linderud (Foxboron)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

In vim 9.0.1046-1, pasting by holding the shift key and using either the middle mouse button or the "paste" entry from the context menu is broken at least when all of the following circumstances coincide:
- I'm using the testing repositories,
- vim is running inside tmux,
- tmux is configured with with "set-option -g mouse on" and "set-option -g set-clipboard on",
- I'm using GNOME terminal and GNOME is running in Wayland mode.

I have not tested if all of these are required to reproduce. By "broken" I mean that at least some stuff from the clipboard buffer is pasted, but also things that I had not copied (possibly the contents from the "non-shift" and the "shift" clipboard buffer in tmux get mixed/concatenated), and newlines and whitespaces/indentions get mangled/garbled.

To solve the issue, I've taken the PKGBUILD for the normal vim package(s), updated it to vim version 9.0.1157, and built the packages in a clean chroot using "testing-x86_64-build" from the devtools package. Updating to the resulting vim packages does indeed solve the issue for me.
This task depends upon

Closed by  Morten Linderud (Foxboron)
Thursday, 12 January 2023, 14:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  9.0.1182-1
Comment by Toolybird (Toolybird) - Sunday, 08 January 2023, 20:31 GMT
Possibly related forum thread [1]

[1] https://bbs.archlinux.org/viewtopic.php?id=282608
Comment by Alan Orth (stickyboy) - Wednesday, 11 January 2023, 07:42 GMT
I think this is related to recent terminfo changes in ncurses. It's fixed in recent vim versions. Upstream issue on vim issue tracker:

https://github.com/vim/vim/issues/11766
Comment by ilf (ilf) - Thursday, 12 January 2023, 14:53 GMT
I can verify the bug and that 9.0.1182 from testing fixes this. Thanks!
Comment by Morten Linderud (Foxboron) - Thursday, 12 January 2023, 14:56 GMT
Thanks for testing!

Loading...