summaryrefslogtreecommitdiffstats
path: root/src/grep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/grep.c')
-rw-r--r--src/grep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/grep.c b/src/grep.c
index e4201d69..59e8521e 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -86,6 +86,7 @@ grep_select(struct view *view, struct line *line)
string_ncopy(view->ref, grep->file, strlen(grep->file));
view->env->lineno = grep->lineno + 1;
string_ncopy(view->env->text, text, strlen(text));
+ view->env->blob[0] = 0;
}
static const char *grep_args[] = {