]> git.wh0rd.org Git - nano.git/commitdiff
remove unneeded variable
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 16 Nov 2005 03:54:22 +0000 (03:54 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 16 Nov 2005 03:54:22 +0000 (03:54 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3186 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/search.c

index 8b49bd33f55d5147391cc4819e0921bf516df576..07c494ff6c57abb9467ceb0bbc93b61a50ef273c 100644 (file)
@@ -1030,8 +1030,6 @@ bool find_bracket_match(bool reverse, const char *bracket_set)
 {
     filestruct *fileptr = openfile->current;
     const char *rev_start = NULL, *found = NULL;
-    size_t current_x_find = 0;
-       /* The location in the current line of the match we found. */
     ssize_t current_y_find = openfile->current_y;
 
     assert(strlen(bracket_set) == 2);
@@ -1073,12 +1071,9 @@ bool find_bracket_match(bool reverse, const char *bracket_set)
            rev_start += strlen(fileptr->data);
     }
 
-    /* We found an instance. */
-    current_x_find = found - fileptr->data;
-
     /* We've definitely found something. */
     openfile->current = fileptr;
-    openfile->current_x = current_x_find;
+    openfile->current_x = found - fileptr->data;
     openfile->placewewant = xplustabs();
     openfile->current_y = current_y_find;