Skip to content

Instantly share code, notes, and snippets.

@saitoha
Created November 24, 2012 05:29
Show Gist options
  • Select an option

  • Save saitoha/4138554 to your computer and use it in GitHub Desktop.

Select an option

Save saitoha/4138554 to your computer and use it in GitHub Desktop.
Vim - Fix termresponse's auto-recognization issue (caused by patch 7.3.699 https://groups.google.com/forum/#!topic/vim_dev/u7c-Ad4xKrU)
diff -r fcca64585e2a src/term.c
--- a/src/term.c Fri Nov 23 21:54:48 2012 +0100
+++ b/src/term.c Sat Nov 24 14:25:45 2012 +0900
@@ -4081,7 +4081,7 @@
{
/* Only set 'ttymouse' automatically if it was not set
* by the user already. */
- if (!option_was_set((char_u *)"ttym"))
+ if (ttym_flags == TTYM_XTERM || !option_was_set((char_u *)"ttym"))
{
# ifdef TTYM_SGR
if (extra >= 277)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment