aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/minibuf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index b443ddcc74..5f866d5238 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -338,7 +338,10 @@ get_minibuffer (depth)
XCONS (tail)->car = buf;
}
else
- reset_buffer (XBUFFER (buf));
+ {
+ reset_buffer (XBUFFER (buf));
+ Fkill_all_local_variables (buf);
+ }
return buf;
}