shithub: orca

Download patch

ref: 2f524e9023d423ba0513f0e6815ebb62f3e1891a
parent: 3bafb462c5d7bf11375cf81e1c8cb0b389a24d6f
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Feb 19 06:47:26 EST 2020

plan9: allow space as well as ":" separating arguments from the command

--- a/orca.man
+++ b/orca.man
@@ -48,7 +48,7 @@
 .B -p
 Starts
 .I Orca
-in a paused state.
+in paused state.
 .TP
 .B -r
 Starts with a specific random seed.
@@ -108,6 +108,9 @@
 .B Delete Backspace Ctrl+h
 Keys to remove text.
 .TP
+.B #
+Comment/uncomment selected text.
+.TP
 .B Ctrl+k
 Enter a command. See
 .B COMMANDS
@@ -172,4 +175,4 @@
 .B rewind NUMBER
 Decrease frame value.
 .SH SOURCE
-https://github.com/Hundredrabbits/Orca
+https://github.com/hundredrabbits/Orca
--- a/plan9.c
+++ b/plan9.c
@@ -272,7 +272,7 @@
 		return;
 	}
 
-	if ((a = strchr(s, ':')) != nil)
+	if ((a = strchr(s, ':')) != nil || (a = strchr(s, ' ')) != nil)
 		*a++ = 0;
 
 	if (strcmp(s, "play") == 0)