4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: [ or ] followed by mouse click doesn't work.
12 Solution: Reverse check for key being a mouse event. (Dominique Pelle)
16 *** ../vim-7.2.411/src/normal.c 2010-03-17 13:07:01.000000000 +0100
17 --- src/normal.c 2010-05-07 15:46:54.000000000 +0200
20 * There are a few special cases where we want certain combinations of
21 * characters to be considered as a single word. These are things like
22 * "->", "/ *", "*=", "+=", "&=", "<=", ">=", "!=" etc. Otherwise, each
23 ! * character is in it's own class.
25 if (c != NUL && vim_strchr((char_u *)"-+*/%<>&|^!=", c) != NULL)
28 * There are a few special cases where we want certain combinations of
29 * characters to be considered as a single word. These are things like
30 * "->", "/ *", "*=", "+=", "&=", "<=", ">=", "!=" etc. Otherwise, each
31 ! * character is in its own class.
33 if (c != NUL && vim_strchr((char_u *)"-+*/%<>&|^!=", c) != NULL)
38 * Command character that's ignored.
39 * Used for CTRL-Q and CTRL-S to avoid problems with terminals that use
46 * Command character that's ignored.
47 * Used for CTRL-Q and CTRL-S to avoid problems with terminals that use
54 * [ or ] followed by a middle mouse click: put selected text with
55 * indent adjustment. Any other button just does as usual.
57 ! else if (cap->nchar >= K_LEFTMOUSE && cap->nchar <= K_RIGHTRELEASE)
59 (void)do_mouse(cap->oap, cap->nchar,
60 (cap->cmdchar == ']') ? FORWARD : BACKWARD,
62 * [ or ] followed by a middle mouse click: put selected text with
63 * indent adjustment. Any other button just does as usual.
65 ! else if (cap->nchar >= K_RIGHTRELEASE && cap->nchar <= K_LEFTMOUSE)
67 (void)do_mouse(cap->oap, cap->nchar,
68 (cap->cmdchar == ']') ? FORWARD : BACKWARD,
69 *** ../vim-7.2.411/src/version.c 2010-03-23 18:22:40.000000000 +0100
70 --- src/version.c 2010-05-07 15:51:35.000000000 +0200
74 { /* Add new patch number below this line */
80 I have a drinking problem -- I don't have a drink!
82 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
83 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
84 \\\ download, build and distribute -- http://www.A-A-P.org ///
85 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///