summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-add--interactive.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-add--interactive.perl b/git-add--interactive.perl
index d9d8ff3090..811b3730c0 100755
--- a/git-add--interactive.perl
+++ b/git-add--interactive.perl
@@ -1492,7 +1492,7 @@ sub patch_update_file {
error_msg __("No other hunks to search\n");
next;
}
- if ($1 eq "") {
+ if ($regex eq "") {
print colored $prompt_color, __("search for regex? ");
$regex = <STDIN>;
if (defined $regex) {