aboutsummaryrefslogtreecommitdiffstats
path: root/prog/mutation.go
diff options
context:
space:
mode:
Diffstat (limited to 'prog/mutation.go')
-rw-r--r--prog/mutation.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/prog/mutation.go b/prog/mutation.go
index af6a458f0..9d6dc2118 100644
--- a/prog/mutation.go
+++ b/prog/mutation.go
@@ -349,6 +349,12 @@ func (t *BufferType) mutate(r *randGen, s *state, arg Arg, ctx ArgCtx) (calls []
}
case BufferFilename:
a.data = []byte(r.filename(s, t))
+ case BufferGlob:
+ if len(t.Values) != 0 {
+ a.data = r.randString(s, t)
+ } else {
+ a.data = []byte(r.filename(s, t))
+ }
case BufferText:
data := append([]byte{}, a.Data()...)
a.data = r.mutateText(t.Text, data)