diff src/normal.c @ 249:f146656fb903

updated for version 7.0069
author vimboss
date Wed, 20 Apr 2005 19:37:22 +0000
parents 4707450c2b33
children 8e3c690f1f3c
line wrap: on
line diff
--- 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