From 3253e7ec09e8c26c31ad5d2172fd664864012f38 Mon Sep 17 00:00:00 2001 From: Scott Prager Date: Tue, 9 Sep 2014 14:44:10 -0400 Subject: vim-patch:7.4.359 Problem: When 'ttymouse' is set to 'uxterm' the xterm version is not requested. (Tomas Janousek) Solution: Do not mark uxterm as a conflict mouse and add resume_get_esc_sequence(). https://code.google.com/p/vim/source/detail?r=v7-4-359 --- src/nvim/os_unix.c | 2 +- src/nvim/term.c | 12 ++++++++++++ src/nvim/version.c | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c index 23dc79b896..52f57f8262 100644 --- a/src/nvim/os_unix.c +++ b/src/nvim/os_unix.c @@ -810,7 +810,7 @@ void check_mouse_termcode(void) mch_setmouse(false); setmouse(); } - xterm_conflict_mouse = true; + resume_get_esc_sequence(); } else { del_mouse_termcode(KS_URXVT_MOUSE); } diff --git a/src/nvim/term.c b/src/nvim/term.c index 7f52566c6f..263b81fc3a 100644 --- a/src/nvim/term.c +++ b/src/nvim/term.c @@ -2468,6 +2468,18 @@ bool did_request_esc_sequence(void) return crv_status == CRV_SENT || u7_status == U7_SENT || xt_index_out > xt_index_in; } + +/// If requesting the version was disabled in did_request_esc_sequence(), +/// enable it again. +void resume_get_esc_sequence(void) +{ + if (crv_status == 0) { + crv_status = CRV_GET; + } + if (u7_status == 0) { + u7_status = U7_GET; + } +} #endif /* diff --git a/src/nvim/version.c b/src/nvim/version.c index cb5b981273..df4c3bd5ce 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -236,7 +236,7 @@ static int included_patches[] = { 362, 361, //360, - //359, + 359, 358, 357, //356 NA -- cgit