summaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/commands.c b/src/commands.c
index ad7b61c6..654a2b3c 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -177,7 +177,7 @@ dwb_com_show_hints(KeyMap *km, Arg *arg) {
/* dwb_com_show_keys(KeyMap *km, Arg *arg){{{*/
gboolean
dwb_com_show_keys(KeyMap *km, Arg *arg) {
- dwb_html_load(CURRENT_WEBVIEW(), "dwb://keys");
+ dwb_html_load(dwb.state.fview, "dwb://keys");
return true;
}/*}}}*/
@@ -185,7 +185,7 @@ dwb_com_show_keys(KeyMap *km, Arg *arg) {
gboolean
dwb_com_show_settings(KeyMap *km, Arg *arg) {
dwb.state.setting_apply = APPLY_GLOBAL;
- dwb_html_load(CURRENT_WEBVIEW(), "dwb://settings");
+ dwb_html_load(dwb.state.fview, "dwb://settings");
return true;
}/*}}}*/
@@ -446,12 +446,7 @@ dwb_com_open(KeyMap *km, Arg *arg) {
/* dwb_com_open(KeyMap *km, Arg *arg) {{{*/
gboolean
dwb_com_open_startpage(KeyMap *km, Arg *arg) {
- if (!dwb.misc.startpage)
- return false;
-
- Arg a = { .p = dwb.misc.startpage, .b = true };
- dwb_load_uri(NULL, &a);
- return true;
+ return dwb_open_startpage(NULL);
} /*}}}*/
/* dwb_com_toggle_maximized {{{*/