From c9b88c1354d2b12ff034ae7edb5aa293a9be70b1 Mon Sep 17 00:00:00 2001 From: ericchiang Date: Sat, 6 Dec 2014 21:08:03 -0500 Subject: [PATCH] + and > are now correct --- pup.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pup.go b/pup.go index 43851d0..7586d08 100644 --- a/pup.go +++ b/pup.go @@ -17,7 +17,7 @@ import ( // |/ \_( # |" // C/ ,--___/ -var VERSION string = "0.3.5" +var VERSION string = "0.3.6" func main() { // process flags and arguments @@ -55,9 +55,9 @@ func main() { switch cmd { case "*": // select all continue - case "+": - funcGenerator = SelectFromChildren case ">": + funcGenerator = SelectFromChildren + case "+": funcGenerator = SelectNextSibling case ",": // nil will signify a comma selectorFuncs = append(selectorFuncs, nil)