]> git.wh0rd.org Git - nano.git/commitdiff
cosmetic fixes
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Sat, 9 Oct 2004 20:10:55 +0000 (20:10 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Sat, 9 Oct 2004 20:10:55 +0000 (20:10 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1981 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/search.c

index b8e33048d45e74fdc4c1f2c204d87d52f4defb72..9fc5ffe8c5c66be69d484e7f2ed0407185f82066 100644 (file)
@@ -979,7 +979,7 @@ void do_find_bracket(void)
     char ch_under_cursor, wanted_ch;
     const char *pos, *brackets = "([{<>}])";
     char regexp_pat[] = "[  ]";
-    size_t old_pww, current_x_save;
+    size_t current_x_save, old_pww;
     int count = 1;
     long flags_save;
     filestruct *current_save;
@@ -995,9 +995,9 @@ void do_find_bracket(void)
     assert(strlen(brackets) % 2 == 0);
     wanted_ch = brackets[(strlen(brackets) - 1) - (pos - brackets)];
 
-    old_pww = placewewant;
-    current_x_save = current_x;
     current_save = current;
+    current_x_save = current_x;
+    old_pww = placewewant;
     flags_save = flags;
     SET(USE_REGEXP);
 
@@ -1036,8 +1036,8 @@ void do_find_bracket(void)
        } else {
            /* Didn't find either a left or right bracket. */
            statusbar(_("No matching bracket"));
-           current_x = current_x_save;
            current = current_save;
+           current_x = current_x_save;
            update_line(current, current_x);
            break;
        }