summaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2011-12-23 14:01:33 +0100
committerportix <portix@gmx.net>2011-12-23 14:01:33 +0100
commit3ab336d42a9f31f66ff0edb57b872364f8c246b9 (patch)
tree51ac8f5b4f1300efb0157e505f9c290a08d4c42d /src/commands.c
parent1c9e321a57f3599657e445fda5bcd1d37246ca4f (diff)
downloaddwb-3ab336d42a9f31f66ff0edb57b872364f8c246b9.zip
Update manpage, fixing wrong nummod in commands_protect and commands_lock
--HG-- branch : experimental
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands.c b/src/commands.c
index 1c182069..ab8f31e1 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -926,14 +926,14 @@ commands_presentation_mode(KeyMap *km, Arg *arg) {
}
DwbStatus
commands_toggle_protected(KeyMap *km, Arg *arg) {
- GList *gl = dwb.state.nummod < 0 ? dwb.state.fview : g_list_nth(dwb.state.views, dwb.state.nummod);
+ GList *gl = dwb.state.nummod < 0 ? dwb.state.fview : g_list_nth(dwb.state.views, dwb.state.nummod-1);
VIEW(gl)->status->protect = !VIEW(gl)->status->protect;
dwb_tab_label_set_text(gl, NULL);
return STATUS_OK;
}
DwbStatus
commands_toggle_locked(KeyMap *km, Arg *arg) {
- GList *gl = dwb.state.nummod < 0 ? dwb.state.fview : g_list_nth(dwb.state.views, dwb.state.nummod);
+ GList *gl = dwb.state.nummod < 0 ? dwb.state.fview : g_list_nth(dwb.state.views, dwb.state.nummod-1);
VIEW(gl)->status->lock = !VIEW(gl)->status->lock;
dwb_tab_label_set_text(gl, NULL);
return STATUS_OK;