summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app.c b/src/app.c
index 0916919e..347e3661 100644
--- a/src/app.c
+++ b/src/app.c
@@ -959,7 +959,7 @@ iBool handleCommand_App(const char *cmd) {
959 const iBool isDuplicate = argLabel_Command(cmd, "duplicate") != 0; 959 const iBool isDuplicate = argLabel_Command(cmd, "duplicate") != 0;
960 newTab_App(isDuplicate ? document_App() : NULL, iTrue); 960 newTab_App(isDuplicate ? document_App() : NULL, iTrue);
961 if (!isDuplicate) { 961 if (!isDuplicate) {
962 postCommand_App("navigate.home"); 962 postCommand_App("navigate.home focus:1");
963 } 963 }
964 return iTrue; 964 return iTrue;
965 } 965 }
@@ -1055,6 +1055,9 @@ iBool handleCommand_App(const char *cmd) {
1055 cstr_String(constAt_StringSet(urls, iRandoms(0, size_StringSet(urls))))); 1055 cstr_String(constAt_StringSet(urls, iRandoms(0, size_StringSet(urls)))));
1056 } 1056 }
1057 } 1057 }
1058 if (argLabel_Command(cmd, "focus")) {
1059 postCommand_App("navigate.focus");
1060 }
1058 return iTrue; 1061 return iTrue;
1059 } 1062 }
1060 else if (equal_Command(cmd, "bookmark.add")) { 1063 else if (equal_Command(cmd, "bookmark.add")) {