bug-global
[Top][All Lists]
Advanced

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

Re: 'Gtags -P <filename>' in vim not work after 'set ignorecase'


From: Shigio YAMAGUCHI
Subject: Re: 'Gtags -P <filename>' in vim not work after 'set ignorecase'
Date: Mon, 21 Oct 2013 08:37:38 +0900

Hi,
I have fixed the bug.
Thank you for the report.

[Patch]
RCS file: /sources/global/global/gtags.vim,v
retrieving revision 1.31
diff -r1.31 gtags.vim
3,4c3,4
< " Version: 0.6.4
< " Last Modified: Nov 24, 2012
---
> " Version: 0.6.5
> " Last Modified: Oct 21, 2013
276c276
<     if a:line =~ '^Gtags'
---
>     if a:line =~# '^Gtags'
296c296
<                 if l:c == 'e'
---
>                 if l:c ==# 'e'
338c338
<         if l:c !~ '[cenpquv]'
---
>         if l:c !~# '[cenpquv]'
355c355
<     if a:option =~ 'f'
---
>     if a:option =~# 'f'
387c387
<         if l:option =~ 'f'
---
>         if l:option =~# 'f'
389c389
<         elseif l:option =~ 'P'
---
>         elseif l:option =~# 'P'
391c391
<         elseif l:option =~ 'g'
---
>         elseif l:option =~# 'g'
433c433
<         if l:option =~ 'f'
---
>         if l:option =~# 'f'
481c481
<     if s:option == 'g'
---
>     if s:option ==# 'g'
483c483
<     elseif s:option == 'f'
---
>     elseif s:option ==# 'f'


2013/10/20 xing du <address@hidden>
Hi,

The bug is described in the subject.
=====Bug Cause
This bug is caused by using '!~' to trim '-p' option, which will trim '-P' option too after 'set ignorecase' in vim.
=====Bug Fix Suggestion
use '!~#' instead of '!~' in s:TrimOption 
gtags.vim
288 "
289 " Trim options to avoid errors.
290 "
291 function! s:TrimOption(option)
...
298         if c !~# '[cenpquv]'
...
304 endfunction
===

Thanks

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




--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

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