bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

search path name in VIM do not work


From: Xin Wang
Subject: search path name in VIM do not work
Date: Mon, 27 Apr 2009 12:21:04 +0800

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]