From c7c4bf72fd7ca4b53df2b75344ef2478213fdefb Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Tue, 6 Dec 2016 22:26:46 -0500 Subject: [PATCH] fixed a bug in the xtagpick script where ex commands tht don't end with $ result in an invalid grep command --- xtagpick | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtagpick b/xtagpick index 74264f6..dbe515f 100755 --- 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" } -- 2.49.0