title: strange characters when pasting into terminal/fish shell: [200~ and [201~
body: <p>When I paste something into <a href="https://github.com/ranger/ranger" rel="nofollow noreferrer">ranger</a> with <kbd>Ctrl+Shift+V</kbd> I get strange characters. Here I pasted word "paste" into ranger:</p>
  
  <p><a href="https://i.stack.imgur.com/J3frP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J3frP.png" alt="enter image description here"></a></p>
  
  <p>And on the begining I have <code>[200~</code> and at the end <code>[201~</code>. I have no idea what could be the problem (ranger? fish shell? terminal? some config files?).
  <strong>How to get rid of unwanted characters while pasting?</strong></p>
  
  <p>Some more info:
  I use fish shell. Problem only persists when I start ranger with keyboard shortcut <kbd>Ctrl+O</kbd>. It works fine when I start ranger by manually entering commands <code>ranger</code> or <code>ranger_cd</code> or just by pasting text directly into fish shell (without starting ranger at all). <kbd>Ctrl+O</kbd> shortcut is defined by:</p>
  
  <pre><code>function fish_user_key_bindings
      bind \co ranger_cd
  end
  </code></pre>
  
  <p>My <code>ranger_cd</code> is function:</p>
  
  <pre><code>function ranger_cd
      set -l tempfile '/tmp/chosendir'
  
      ranger --choosedir $tempfile (pwd)
      if [ -f "$tempfile" ]; and [ (cat -- $tempfile) != (echo -n (pwd)) ]
          cd (cat $tempfile)
      end
      rm -f -- $tempfile
  end
  </code></pre>
  
  <p>(its purpose is to save last dir chosen in ranger and cd into it after exiting ranger)</p>
  
  <p>I also noticed that <kbd>Ctrl+V</kbd> doesn't work in ranger (it pastes only <code>^V</code>), but it works properly directly in fish shell (it pastes what I copied earlier, just as <kbd>Ctrl+Shift+V</kbd>).</p>
  
  <p>Any ideas what could be wrong? Thank you in advance. I use:</p>
  
  <ul>
  <li>Linux Manjaro 19.0.2 XFCE</li>
  <li>Xfce4 terminal 0.8.9.1</li>
  <li>fish 3.1.0</li>
  <li>ranger 1.9.2 (with python 3.6.9)</li>
  </ul>