ref: a7438c82192b2014f5848dce1253292a4dfb5ba1
parent: 67c88531267834b56ab84a6d797eb55fd83228bb
author: Ali Gholami Rudi <ali@rudi.ir>
date: Thu Apr 11 13:38:55 EDT 2013
in: fix finding the correct argument
--- a/in.c
+++ b/in.c
@@ -68,7 +68,7 @@
char *in_arg(int i)
{
struct inbuf *cur = buf;
- while (cur->prev && !cur->prev)
+ while (!cur->args && cur->prev)
cur = cur->prev;
return cur->args && cur->args[i - 1] ? cur->args[i - 1] : "";
}