[hackers] [surf][PATCH] Adapting the `homepage` patch to version 2.0

From: Jaume Devesa <jaume_AT_mailbox.org>
Date: Thu, 21 Sep 2017 20:18:13 +0200

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
_AT_@ -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
_AT_@ -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
Received on Thu Sep 21 2017 - 20:18:13 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 21 2017 - 20:36:33 CEST