]> git.mdlowis.com Git - projs/tide.git/commitdiff
fixed a bug in the xtagpick script where ex commands tht don't end with $ result...
authorMichael D. Lowis <mike@mdlowis.com>
Wed, 7 Dec 2016 03:26:46 +0000 (22:26 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Wed, 7 Dec 2016 03:26:46 +0000 (22:26 -0500)
xtagpick

index 74264f6f3727b7d0120cec3a2c93c345b20af5da..dbe515fab434e2111a1a306c65a45a01a466ed8d 100755 (executable)
--- a/xtagpick
+++ b/xtagpick
@@ -21,7 +21,7 @@ BEGIN { FS = "[\t]+" }
 ($1 == TAG) {
     matchstr = $3
     sub(/^\//, "\"", matchstr)
-    sub(/\$\/;"$/, "\"", matchstr)
+    sub(/\$?\/;"$/, "\"", matchstr)
     gsub(/\*/, "\\*", matchstr)
     print "grep -Hn", matchstr, $2, "| cut -d: -f1,2"
 }