~taiite/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH senpai] Fix crash when lone slash is entered

Details
Message ID
<20211119091102.13532-1-pranjal.kole7@gmail.com>
DKIM signature
pass
Download raw message
Patch: +1 -1
See ticket #79 for more information
---
 commands.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands.go b/commands.go
index 701fe4b..f81974f 100644
--- a/commands.go
+++ b/commands.go
@@ -554,7 +554,7 @@ func parseCommand(s string) (command, args string, isCommand bool) {
	if s[0] != '/' {
		return "", s, false
	}
	if s[1] == '/' {
	if len(s) > 1 && s[1] == '/' {
		// Input starts with two slashes.
		return "", s[1:], false
	}
-- 
2.34.0
Details
Message ID
<f0dc38f6-9526-2c8f-7d3e-aa829485e96a@hirtz.pm>
In-Reply-To
<20211119091102.13532-1-pranjal.kole7@gmail.com> (view parent)
DKIM signature
pass
Download raw message
Woops.  Pushed, thanks!
Reply to thread Export thread (mbox)