neovim/neovim — pull request #835 by epmatsw (2014-06-13 04:06:59+00:00)
Title: [RFC]vim-patch:7.4.305

Problem: Making 'ttymouse' empty after the xterm version was requested
causes problems. (Elijah Griffin)
Solution: Do not check for DEC mouse sequences when the xterm version was
requested. Also don't request the xterm version when DEC mouse
was enabled.

https://code.google.com/p/vim/source/detail?r=63e7cc62402dffb180b40c04c63ceeb5f53957d7

1. term.pro not attached because it does not exist in Neovim.
2. I'm still slightly iffy on the ifdefs, but I think I figured them out.