summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-02-23 21:32:16 +0000
committerBram Moolenaar <Bram@vim.org>2006-02-23 21:32:16 +0000
commitdf1bdc92c289d4531f82418f448466c99ca4bb78 (patch)
treec8ab380c2ffaa17450ffeb5a4ed51c404a38fe15 /src/term.c
parent80a94a582cd2d5307d1e65ec06fe0fb05f60d7c9 (diff)
downloadvim-git-df1bdc92c289d4531f82418f448466c99ca4bb78.tar.gz
updated for version 7.0205
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c
index f9d6d2dd9..621d35ba2 100644
--- a/src/term.c
+++ b/src/term.c
@@ -4695,10 +4695,18 @@ check_termcode(max_offset, buf, buflen)
&& orig_num_clicks != 4
&& orig_mouse_col == mouse_col
&& orig_mouse_row == mouse_row
+ && ((orig_topline == curwin->w_topline
#ifdef FEAT_DIFF
- && orig_topfill == curwin->w_topfill
+ && orig_topfill == curwin->w_topfill
#endif
- && orig_topline == curwin->w_topline)
+ )
+#ifdef FEAT_WINDOWS
+ /* Double click in tab pages line also works
+ * when window contents changes. */
+ || (mouse_row == 0 && firstwin->w_winrow > 0)
+#endif
+ )
+ )
++orig_num_clicks;
else
orig_num_clicks = 1;