summaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commands.c b/src/commands.c
index 4e99a529..0b274b5b 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -62,6 +62,8 @@ commands_simple_command(KeyMap *km) {
else if (ret == STATUS_ERROR) {
dwb_set_error_message(dwb.state.fview, arg->e ? arg->e : km->map->error);
}
+ if (! km->map->arg.ro)
+ km->map->arg.p = NULL;
dwb_clean_key_buffer();
}/*}}}*/