From 60a569a6e925bf8c8fff5f84407e3096117412dd Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Mon, 5 Dec 2016 14:30:37 -0500 Subject: [PATCH] grep doesnt seem to handle crlf line endings so strip the $ off ctags lookups before executing grep --- xtagpick | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtagpick b/xtagpick index 712bff8..74264f6 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