summaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-01-03 17:50:47 +0100
committerportix <portix@gmx.net>2012-01-03 17:50:47 +0100
commit7e1a4c656b1cc589bd70291a98f5862e1cd05a5c (patch)
tree520cde23b1dfb49dd51f4edcbd6fd38ba451ea43 /src/commands.c
parente590646c18b07ba068f76c746bc1ec425f2b7b21 (diff)
downloaddwb-7e1a4c656b1cc589bd70291a98f5862e1cd05a5c.zip
Readonly property for Arg, fixes issue with randomly open rubbish pages
--HG-- branch : experimental
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();
}/*}}}*/