Skip to content

Commit ff12c3d

Browse files
committed
version 4.4 (released on May 25, 2007)
1 parent 931c657 commit ff12c3d

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

doc/taglist.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Author: Yegappan Lakshmanan (yegappan AT yahoo DOT com)
44
For Vim version 6.0 and above
5-
Last change: 2007 February 18
5+
Last change: 2007 May 24
66

77
1. Overview |taglist-intro|
88
2. Taglist on the internet |taglist-internet|
@@ -1413,6 +1413,13 @@ A. Are you using Vim version 6.0 and above? The taglist plugin relies on the
14131413
>
14141414
let Tlist_Ctags_Cmd='C:\Progra~1\Ctags\ctags.exe'
14151415
<
1416+
If you are using a cygwin compiled version of exuberant ctags on MS-Windows,
1417+
make sure that either you have the cygwin compiled sort utility installed
1418+
and available in your PATH or compile exuberant ctags with internal sort
1419+
support. Otherwise, when exuberant ctags sorts the tags output by invoking
1420+
the sort utility, it may end up invoking the MS-Windows version of
1421+
sort.exe, thereby resulting in failure.
1422+
14161423
Q. When I try to open the taglist window, I am seeing the following error
14171424
message. How do I fix this problem?
14181425

plugin/taglist.vim

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
" File: taglist.vim
22
" Author: Yegappan Lakshmanan (yegappan AT yahoo DOT com)
3-
" Version: 4.3
4-
" Last Modified: February 18, 2007
5-
" Copyright: Copyright (C) 2002-2006 Yegappan Lakshmanan
3+
" Version: 4.4
4+
" Last Modified: May 24, 2007
5+
" Copyright: Copyright (C) 2002-2007 Yegappan Lakshmanan
66
" Permission is hereby granted to use and distribute this code,
77
" with or without modifications, provided that this copyright
88
" notice is copied with it. Like anything else that's free,
@@ -1662,7 +1662,7 @@ function! s:Tlist_Window_Init()
16621662
" Close the fold for this buffer when leaving the buffer
16631663
if g:Tlist_File_Fold_Auto_Close
16641664
autocmd BufEnter * silent
1665-
\ call s:Tlist_Window_Open_File_Fold(expand('<afile>'))
1665+
\ call s:Tlist_Window_Open_File_Fold(expand('<abuf>'))
16661666
endif
16671667
" Exit Vim itself if only the taglist window is present (optional)
16681668
if g:Tlist_Exit_OnlyWindow
@@ -4012,8 +4012,8 @@ autocmd BufDelete * silent call s:Tlist_Buffer_Removed(expand('<afile>:p'))
40124012
" Tlist_Window_Open_File_Fold
40134013
" Open the fold for the specified file and close the fold for all the
40144014
" other files
4015-
function! s:Tlist_Window_Open_File_Fold(acmd_file)
4016-
call s:Tlist_Log_Msg('Tlist_Window_Open_File_Fold (' . a:acmd_file . ')')
4015+
function! s:Tlist_Window_Open_File_Fold(acmd_bufnr)
4016+
call s:Tlist_Log_Msg('Tlist_Window_Open_File_Fold (' . a:acmd_bufnr . ')')
40174017

40184018
" Make sure the taglist window is present
40194019
let winnum = bufwinnr(g:TagList_title)
@@ -4044,7 +4044,7 @@ function! s:Tlist_Window_Open_File_Fold(acmd_file)
40444044
silent! %foldclose
40454045

40464046
" Get tag list index of the specified file
4047-
let fname = fnamemodify(a:acmd_file, ":p")
4047+
let fname = fnamemodify(bufname(a:acmd_bufnr + 0), ':p')
40484048
if filereadable(fname)
40494049
let fidx = s:Tlist_Get_File_Index(fname)
40504050
if fidx != -1
@@ -4251,12 +4251,6 @@ function! s:Tlist_Menu_Update_File(clear_menu)
42514251

42524252
endif
42534253

4254-
let fname = escape(fnamemodify(bufname('%'), ':t'), '.')
4255-
if fname != ''
4256-
exe 'anoremenu T&ags.' . fname . ' <Nop>'
4257-
anoremenu T&ags.-SEP2- :
4258-
endif
4259-
42604254
" Skip buffers with 'buftype' set to nofile, nowrite, quickfix or help
42614255
if &buftype != ''
42624256
return
@@ -4285,6 +4279,12 @@ function! s:Tlist_Menu_Update_File(clear_menu)
42854279
endif
42864280
endif
42874281

4282+
let fname = escape(fnamemodify(bufname('%'), ':t'), '.')
4283+
if fname != ''
4284+
exe 'anoremenu T&ags.' . fname . ' <Nop>'
4285+
anoremenu T&ags.-SEP2- :
4286+
endif
4287+
42884288
if !s:tlist_{fidx}_tag_count
42894289
return
42904290
endif

0 commit comments

Comments
 (0)