This trivial commit adapts the _homepage patch_ [1] at the current
version of surf (2.0)

[1]: https://surf.suckless.org/patches/homepage
---
 config.def.h | 1 +
 surf.c       | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h
index 2e735bf..49614cc 100644
--- a/config.def.h
+++ b/config.def.h
@@ -64,6 +64,7 @@ static WebKitFindOptions findopts = 
WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
 
 #define PROMPT_GO   "Go:"
 #define PROMPT_FIND "Find:"
+#define HOMEPAGE "about:blank"
 
 /* SETPROP(readprop, setprop, prompt)*/
 #define SETPROP(r, s, p) { \
diff --git a/surf.c b/surf.c
index 0f8b9c9..e566afa 100644
--- a/surf.c
+++ b/surf.c
@@ -2033,7 +2033,7 @@ main(int argc, char *argv[])
        if (argc > 0)
                arg.v = argv[0];
        else
-               arg.v = "about:blank";
+            arg.v = HOMEPAGE;
 
        setup();
        c = newclient(NULL);
-- 
2.14.1


Reply via email to