summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-04-20 19:37:22 +0000
committerBram Moolenaar <Bram@vim.org>2005-04-20 19:37:22 +0000
commit2cf8b301df39f742c07d10dadbbe19218dcc1845 (patch)
tree21b7335c37fdcde16ea27ee645406fa2548ab5e0 /src/normal.c
parent2c5bc17eb722da0257d125fae18e48ab0122f460 (diff)
downloadvim-git-2cf8b301df39f742c07d10dadbbe19218dcc1845.tar.gz
updated for version 7.0069
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/normal.c b/src/normal.c
index 85d84c45b..e5404ef53 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -6071,9 +6071,14 @@ nv_brackets(cap)
*/
else if (cap->nchar == 's' || cap->nchar == 'S')
{
- if (spell_move_to(cap->cmdchar == ']' ? FORWARD : BACKWARD,
+ setpcmark();
+ for (n = 0; n < cap->count1; ++n)
+ if (spell_move_to(cap->cmdchar == ']' ? FORWARD : BACKWARD,
cap->nchar == 's' ? TRUE : FALSE) == FAIL)
- clearopbeep(cap->oap);
+ {
+ clearopbeep(cap->oap);
+ break;
+ }
}
#endif