]> granicus.if.org Git - vim/commitdiff
updated for version 7.2.412 v7.2.412
authorBram Moolenaar <Bram@vim.org>
Fri, 7 May 2010 13:52:08 +0000 (15:52 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 7 May 2010 13:52:08 +0000 (15:52 +0200)
Problem:    [ or ] followed by mouse click doesn't work.
Solution:   Reverse check for key being a mouse event. (Dominique Pelle)

src/normal.c
src/version.c

index 8b9fea76b0fc1e769a56ecf4ffb200f912702576..1b514b36f3e6c463b8426bd7d6df3dadfd7f5516 100644 (file)
@@ -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,
index ef9b5edb2af1c1ba093861bce72c1cf2f44ea299..1f7bb3872d7e8ca6d243dd796ad4e555f7e6fb61 100644 (file)
@@ -681,6 +681,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    412,
 /**/
     411,
 /**/