tmux / zsh desordena texto colado

3

Quando eu colo o texto em um shell do tmux rodando o zsh, selecione-o com um mouse e, em seguida, aperte o terceiro botão do mouse, ele prefixará o texto com "200 ~" e adicionará um "~" no final. Por exemplo, se eu tiver o texto "algum texto" marcado, o tmux irá colar "200 ~ some text ~" em seu lugar.

Estou no Debian com o tmux versão 2.0 e o zsh 5.1.

    
por oneself 02.09.2015 / 20:15

1 resposta

5

De README

do zsh

Incompatibilites between 5.0.8 and 5.1

The default behaviour when text is pasted into an X Windows terminal has changed significantly (unless you are using a very old terminal emulator that doesn't support this mode). Now, the new "bracketed paste mode" treats all the pasted text as literal characters. This means, in particular, that a newline is simply inserted as a visible newline; you need to hit Return on the keyboard to execute the pasted text in one go. See the description of zle_bracketed_paste in the zshparams manual for more. "unset zle_bracketed_paste" restores the previous behaviour.

    
por 02.09.2015 / 20:46