diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-05-07 15:52:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-05-07 15:52:08 +0200 |
commit | 5ea0ac77b3a44e414932da38a98f6821fe3f33a3 (patch) | |
tree | 0c18309fd19773c0be1b07db9155521e884b25b6 /src/normal.c | |
parent | dfdf3c446f387b66b3d3391533ab7644a8508f9b (diff) | |
download | vim-git-5ea0ac77b3a44e414932da38a98f6821fe3f33a3.tar.gz |
updated for version 7.2.412v7.2.412
Problem: [ or ] followed by mouse click doesn't work.
Solution: Reverse check for key being a mouse event. (Dominique Pelle)
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/normal.c b/src/normal.c index 8b9fea76b..1b514b36f 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, |