Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1131137

Bug#1027435: ncurses-base: Breaks pasting in vim within tmux

From Sven Joachim <svenjoac@gmx.de>
Newsgroups linux.debian.bugs.dist
Subject Bug#1027435: ncurses-base: Breaks pasting in vim within tmux
Date 2023-01-01 17:50 +0100
Message-ID <FJ9H3-eRuv-1@gated-at.bofh.it> (permalink)
References (2 earlier) <FIKyZ-eBr9-11@gated-at.bofh.it> <FIKfD-eBjY-19@gated-at.bofh.it> <FJ6zv-ePl0-17@gated-at.bofh.it> <FIKfD-eBjY-19@gated-at.bofh.it> <FJ6zv-ePl0-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2023-01-01 14:17 +0100, Sven Joachim wrote:

> On 2022-12-31 08:44 -0500, Thomas Dickey wrote:
>
>> On Sat, Dec 31, 2022 at 02:18:49PM +0100, Antoine Le Gonidec wrote:
>>> Package: ncurses-base
>>> Version: 6.3+20221224-2
>>> Severity: important
>>
>> that's probably this - which will be in today's update/release:
>>
>> --- ncurses-6.3-20221224+/misc/terminfo.src	2022-12-24 18:18:58.000000000 +0000
>> +++ ncurses-6.4-20221231/misc/terminfo.src	2022-12-29 20:11:56.000000000 +0000
>> @@ -6,8 +6,8 @@
>>  # Report bugs and new terminal descriptions to
>>  #	bug-ncurses@gnu.org
>>  #
>> -#	$Revision: 1.1039 $
>> -#	$Date: 2022/12/24 18:18:58 $
>> +#	$Revision: 1.1041 $
>> +#	$Date: 2022/12/29 20:11:56 $
>>  #
>>  # The original header is preserved below for reference.  It is noted that there
>>  # is a "newer" version which differs in some cosmetic details (but actually
>> @@ -5768,7 +5768,7 @@
>>  # detail.  The names for the extended capabilities here were introduced by vim
>>  # in January 2017.
>>  bracketed+paste|xterm bracketed paste,
>> -	BD=\E[?2004l, BE=\E[?2004h, PD=\E[201~, PE=\E[200~,
>> +	BD=\E[?2004l, BE=\E[?2004h, PE=\E[201~, PS=\E[200~,
>>
>>  #### XTERM Mouse
>>  # The xterm mouse protocol is used by other terminal emulators.
>> @@ -8210,7 +8210,7 @@
>>  	use=screen4,
>>
>>  no+brackets|cancel bracketed paste,
>> -	BD@, BE@, PD@, PE@,
>> +	BD@, BE@, PE@, PS@,
>>
>>  # The bce and status-line entries are from screen 3.9.13 (and require some
>>  # changes to .screenrc).
>> @@ -25508,8 +25508,8 @@
>>  #
>>  # BE enables bracketed paste
>>  # BD disables bracketed paste
>> -# PE is sent before the pasted text
>> -# PD is sent after the pasted text
>> +# PS is sent before the pasted text
>> +# PE is sent after the pasted text
>>  #
>>  # Here are the other xterm-related extensions which are used in this file:
>>  #
>> @@ -27713,4 +27713,8 @@
>>  #	+ add/use bracketed+paste to help identify terminals supporting this
>>  #	  xterm feature (prompted by discussion with Bram Moolenaar) -TD
>>  #
>> +# 2022-12-29
>> +#	+ correct PS vs PE names in bracketed+paste (report by Bram Moolenaar)
>> +#	  -TD
>> +#
>>  ######## SHANTIH!  SHANTIH!  SHANTIH!
>
> Unfortunately, this did not help here :-(.  After upgrading ncurses-base
> to 6.4-1, pasting text into vim running inside tmux still gives the same
> funny behavior the submitter described in the original report here,
> tested on unstable with vim 9.0.1000 and tmux 3.3a.
>
> Bram Moolenaar published patch 9.0.1117[1] the other day.  I have not
> tested yet whether it makes a difference, but the commit message
> ("Correct mixup of output strings and key codes.") sounds like it might
> fix the issue.

Indeed applying patch 9.0.1117 fixes the problem, provided that
ncurses-base is /also/ upgraded to 6.4-1.  With the incorrect
definitions from ncurses-base 6.3+20221224-1, pasting remains broken
even in vim 9.0.1117.

So I guess we need to clone a copy of this bug to vim and upgrade both
ncurses and vim.

Cheers,
       Sven

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1027435: ncurses-base: Breaks pasting in vim within tmux Antoine Le Gonidec <debian.bugs@dotslashplay.it> - 2022-12-31 14:40 +0100
  Bug#1027435: ncurses-base: Breaks pasting in vim within tmux Thomas Dickey <dickey@his.com> - 2022-12-31 15:00 +0100
    Bug#1027435: ncurses-base: Breaks pasting in vim within tmux Sven Joachim <svenjoac@gmx.de> - 2023-01-01 14:30 +0100
      Bug#1027435: ncurses-base: Breaks pasting in vim within tmux Sven Joachim <svenjoac@gmx.de> - 2023-01-01 17:50 +0100
  Bug#1027435: ncurses-base: Breaks pasting in vim within tmux Sven Joachim <svenjoac@gmx.de> - 2023-01-01 18:30 +0100
    Bug#1027674: vim: bracketed paste is broken before patch 9.0.1117 Sven Joachim <svenjoac@gmx.de> - 2023-01-01 19:00 +0100
      Bug#1027674: vim: bracketed paste is broken before patch 9.0.1117 James McCoy <jamessan@debian.org> - 2023-01-01 22:00 +0100
        Bug#1027674: vim: bracketed paste is broken before patch 9.0.1117 Sven Joachim <svenjoac@gmx.de> - 2023-01-01 22:40 +0100
    Bug#1027435: ncurses-base: Breaks pasting in vim within tmux Sven Joachim <svenjoac@gmx.de> - 2023-01-11 19:00 +0100
      Bug#1027435: ncurses-base: Breaks pasting in vim within tmux Sven Joachim <svenjoac@gmx.de> - 2023-01-22 20:40 +0100
  Bug#1027435: Broke my hold vim* packages 王昊然 <msl0000023508@gmail.com> - 2023-02-15 06:40 +0100

csiph-web