When I execute following command in VIM
Gtags -P hashtable
An error occured,
Error: Tag which matches to 'hashtable' not found.
But I am searching a path name, not a tag. After I dig into it, I found that
the program is relate to s:TrimOption function. When in VIM ignorecase or
smartcase option is set, s:TrimOption will trim the 'P' option.
Following patch use case sensitive match methods !~# instead of !~.
--- /usr/local/share/gtags/gtags.vim 2009-04-27 09:19:37.000000000 +0800
+++ .vim/plugin/gtags.vim 2009-04-27 10:36:03.000000000 +0800
@@ -295,7 +295,7 @@
while i < length
let c = a:option[i]
- if c !~ '[cenpquv]'
+ if c !~# '[cenpquv]'
let option = option . c
endif
let i = i + 1
--
Xin Wang
_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global