~ofiala

Recent activity

[PATCH] fix null dereference 10 days ago

From Ondřej Fiala to ~sircmpwn/gmni-devel

---
My previous patch failed to include null check on browser->page_title,
causing null dereference when title is not set. Oops.

 src/gmnlm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gmnlm.c b/src/gmnlm.c
index f5b7480..3160327 100644
--- a/src/gmnlm.c
+++ b/src/gmnlm.c
@@ -614,7 +614,7 @@ do_prompts(const char *prompt, struct browser *browser)
	case 'm':
		if (in[1] != '\0' && !isspace(in[1])) break;
[message trimmed]

[PATCH] gmnlm: add optional custom bookmark titles 12 days ago

From Ondřej Fiala to ~sircmpwn/gmni-devel

It is often useful to title a bookmark differently from how the page's
author titled it.
---
 src/gmnlm.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/src/gmnlm.c b/src/gmnlm.c
index 536914a..f5b7480 100644
--- a/src/gmnlm.c
+++ b/src/gmnlm.c
@@ -80,7 +80,7 @@ const char *help_msg =
	"b[N]\tJump back N entries in history, N is optional, default 1\n"
	"f[N]\tJump forward N entries in history, N is optional, default 1\n"
	"H\tView all page history\n"
[message trimmed]

[PATCH v2] gmnlm: output newline when quiting via Control-D 15 days ago

From Ondřej Fiala to ~sircmpwn/gmni-devel

It is common practice to quit programs reading from stdin by sending
EOF to their input. This commit ensures such an exit is functionally
equivalent to a regular exit via the 'q' command.
---
Apologies, forgot to properly verify it works. This should do.

 src/gmnlm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gmnlm.c b/src/gmnlm.c
index b30d602..536914a 100644
--- a/src/gmnlm.c
+++ b/src/gmnlm.c
@@ -553,6 +553,7 @@ do_prompts(const char *prompt, struct browser *browser)
[message trimmed]

[PATCH] gmnlm: output newline when quiting via Control-D 15 days ago

From Ondřej Fiala to ~sircmpwn/gmni-devel

It is common practice to quit programs reading from stdin by sending
EOF to their input. This commit ensures such an exit is functionally
equivalent to a regular exit via the 'q' command.
---
When quiting via Control-D rather than the 'q' command, the shell prompt
gets mixed with the gmnlm one.

 src/gmnlm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gmnlm.c b/src/gmnlm.c
index b30d602..6b0016c 100644
--- a/src/gmnlm.c
+++ b/src/gmnlm.c
[message trimmed]

[PATCH] gmnlm: update usage to match man page 21 days ago

From Ondřej Fiala to ~sircmpwn/gmni-devel

---
 src/gmnlm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gmnlm.c b/src/gmnlm.c
index 710473b..b30d602 100644
--- a/src/gmnlm.c
+++ b/src/gmnlm.c
@@ -95,7 +95,7 @@ const char *help_msg =
static void
usage(const char *argv_0)
{
	fprintf(stderr, "usage: %s [gemini://...]\n", argv_0);
	fprintf(stderr, "usage: %s [-PU] [-j mode] [-W width] [gemini://...]\n", argv_0);
[message trimmed]

[PATCH] gmnlm: use 'trust always' as default in TOFU prompt 22 days ago

From Ondřej Fiala to ~sircmpwn/gmni-devel

---
The TOFU prompt seems to encourage choosing the 'trust always' option
unless the user knows better. In such cases, it is common to default to
such option when no explicit choice is provided by the user.

To me, this seems to make the UX feel much closer to clients that don't
ask at all, while retaining the security benefits.

I considered also modifying the prompt to make this behavior more
visible, but I am not sure about a good way to do it. I am afraid that
capitalizing the first letter, which is the convention, could be
misunderstood by users in this context. Please let me know what you
think about this.
[message trimmed]

[PATCH v2] Demonstrate that I can use git send-email 22 days ago

From Ondřej Fiala to ~sircmpwn/email-test-drive

---
Let's see if this works...

 ondrej-fiala | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 ondrej-fiala

diff --git a/ondrej-fiala b/ondrej-fiala
new file mode 100644
index 0000000..66cb3d4
--- /dev/null
+++ b/ondrej-fiala
@@ -0,0 +1 @@
I have successfully used git send-email!
[message trimmed]

[PATCH v2] Demonstrate that I can use git send-email 22 days ago

From Ondřej Fiala to ~sircmpwn/email-test-drive

---
 ondrej-fiala | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 ondrej-fiala

diff --git a/ondrej-fiala b/ondrej-fiala
new file mode 100644
index 0000000..66cb3d4
--- /dev/null
+++ b/ondrej-fiala
@@ -0,0 +1 @@
I have successfully used git send-email!
-- 
2.34.1
[message trimmed]

[PATCH] Demonstrate that I can use git send-email 22 days ago

From Ondřej Fiala to ~sircmpwn/email-test-drive

---
 ondrej-fiala | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 ondrej-fiala

diff --git a/ondrej-fiala b/ondrej-fiala
new file mode 100644
index 0000000..6d0ecfd
--- /dev/null
+++ b/ondrej-fiala
@@ -0,0 +1 @@
I'm about to try git send-email
-- 
2.34.1
[message trimmed]