search path name in VIM do not work

View: New views
2 Messages — Rating Filter:   Alert me  

search path name in VIM do not work

by Xin Wang-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
Bug-global@...
http://lists.gnu.org/mailman/listinfo/bug-global

Re: search path name in VIM do not work

by Shigio YAMAGUCHI-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
> When I execute following command in VIM
>   Gtags -P hashtable
>
> An error occured,
>
>   Error: Tag which matches to 'hashtable' not found.

This bug have been fixed in the latest version of GLOBAL.
You seems to be using a former version.

By the way, you had better use GLOBAL-5.7 or the later,
because the gtags.vim is wiser than former versions
in the GtagsCursor command.

Anyway, thank you for your report!
--
Shigio YAMAGUCHI <shigio@...>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


_______________________________________________
Bug-global mailing list
Bug-global@...
http://lists.gnu.org/mailman/listinfo/bug-global