summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@zimbu.org>2010-05-07 15:52:08 +0200
committerBram Moolenaar <bram@zimbu.org>2010-05-07 15:52:08 +0200
commit3516f029145b95453b30904543abdabf7e85090e (patch)
treea60c50f64a5a1fbbbacfa0bc635cf3a641886997
parent15e4f2563bb9d2a0aec88b47a2af9a21c64cd22e (diff)
downloadvim-3516f029145b95453b30904543abdabf7e85090e.tar.gz
updated for version 7.2.412v7.2.412v7-2-412
Problem: [ or ] followed by mouse click doesn't work. Solution: Reverse check for key being a mouse event. (Dominique Pelle)
-rw-r--r--src/normal.c6
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/src/normal.c b/src/normal.c
index 8b9fea76..1b514b36 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -3196,7 +3196,7 @@ get_mouse_class(p)
* There are a few special cases where we want certain combinations of
* characters to be considered as a single word. These are things like
* "->", "/ *", "*=", "+=", "&=", "<=", ">=", "!=" etc. Otherwise, each
- * character is in it's own class.
+ * character is in its own class.
*/
if (c != NUL && vim_strchr((char_u *)"-+*/%<>&|^!=", c) != NULL)
return 1;
@@ -4085,7 +4085,7 @@ check_scrollbind(topline_diff, leftcol_diff)
/*
* Command character that's ignored.
* Used for CTRL-Q and CTRL-S to avoid problems with terminals that use
- * xon/xoff
+ * xon/xoff.
*/
static void
nv_ignore(cap)
@@ -6523,7 +6523,7 @@ nv_brackets(cap)
* [ or ] followed by a middle mouse click: put selected text with
* indent adjustment. Any other button just does as usual.
*/
- else if (cap->nchar >= K_LEFTMOUSE && cap->nchar <= K_RIGHTRELEASE)
+ else if (cap->nchar >= K_RIGHTRELEASE && cap->nchar <= K_LEFTMOUSE)
{
(void)do_mouse(cap->oap, cap->nchar,
(cap->cmdchar == ']') ? FORWARD : BACKWARD,
diff --git a/src/version.c b/src/version.c
index ef9b5edb..1f7bb387 100644
--- a/src/version.c
+++ b/src/version.c
@@ -682,6 +682,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 412,
+/**/
411,
/**/
410,