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/term.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/nvim/term.c') 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 /* -- cgit