> Hi sinbad!
>
> On So, 09 Okt 2011, sinbad wrote:
> Thanks for the detailed steps. Next time, please attach the plugin, so I
> don't have to fix all the linebreaks ;)
>
> Unfortunately, I can't reproduce the error. I even tried with a stock
> 7.3 vim version. Anyway, I noticed, that all your bufnr are always zero.
> I think that definitely shouldn't be. I guess, somehow all your buffers
> get wiped out. Check with :ls! if there are other buffers available. And
> can you please try this also when starting vim this way:
> vim -u NONE -U NONE -N -i NONE
> then do :so ~/.vim/plugin/gtags.vim
> and proceed as above.
>
> regards,
> Christian
Hi Christian,
Thanks for Checking out.
I am still able to reproduce the problem.
I am not sure why it is not happening in your test.
I guess i am all alone in this :(
vim -u NONE -U NONE -N -i NONE
:ver
VIM - Vi IMproved 7.0 (2006 May 7, compiled Jun 12 2009 07:08:36)
Included patches: 1, 3-4, 7-9, 11, 13-17, 19-26, 29-31, 34-44, 47,
50-56, 58-64, 66-73, 75, 77-92, 94-107, 109, 202, 234-237
Modified by <bugzilla@redhat.com>
Compiled by <bugzilla@redhat.com>
Huge version without GUI. Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset
+cindent -clientserver -clipboard +cmdline_compl +cmdline_hist
+cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con
+diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search
+farsi +file_in_path +find_in_path +folding -footer +fork() +gettext -
hangul_input +iconv +insert_expand +jumplist +keymap
+langmap +libcall +linebreak +lispindent +listcmds +localmap +menu
+mksession +modify_fname +mouse -mouseshape +mouse_dec +mouse_gpm -
mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte
+multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra +perl
+postscript +printer +profile +python +quickfix +reltime +rightleft -
ruby +scrollbind +signs +smartindent -sniff +statusline
-sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl
+terminfo +termresponse +textobjects +title -toolbar +user_commands
+vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -
xim -xsmp -xterm_clipboard -xterm_save
:so ~/.vim/plugin/gtags.vim
:scriptnames
1: /home/sinbad/.vim/plugin/gtags.vim
:e edit.c
:Gtags -r ResetRedobuff
:lopen
edit.c|404| ResetRedobuff();
edit.c|6436| ResetRedobuff();
misc2.c|1176| ResetRedobuff();
misc2.c|1177| ResetRedobuff();
normal.c|1506| ResetRedobuff();
normal.c|3626| ResetRedobuff();
normal.c|7380| ResetRedobuff();
spell.c|10317| ResetRedobuff();
:echo getloclist(0)
[{'lnum': 404, 'bufnr': 1, 'col': 0, 'valid': 1, 'vcol': 0, 'nr': -1,
'type': '', 'pattern': '', 'text': ' ResetRedobuff();'},
{'lnum': 6436, 'bufnr': 1, 'col': 0, 'valid': 1, 'vcol':
0, 'nr': -1, 'type': '', 'pattern': '', 'text': '
ResetRedobuff();'}, {'lnum': 1176, 'bufnr': 3, 'col': 0, 'valid': 1,
'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'text': '
ResetRedobuff();'}, {'lnum': 1177, 'bufnr': 3, 'col': 0,
'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'text':
' ResetRedobuff();'}, {'lnum': 1506, 'bufnr': 4, 'col'
: 0, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '',
'text': ' ResetRedobuff();'}, {'lnum': 3626,
'bufnr': 4, 'col': 0, 'valid': 1, 'vcol': 0, 'nr': -1, 'type':
'', 'pattern': '', 'text': ' ResetRedobuff();'}, {'lnum':
7380, 'bufnr': 4, 'col': 0, 'valid': 1, 'vcol': 0, 'nr': -1, 'type':
'', 'pattern': '', 'text': ' ResetRedobuff();'
}, {'lnum': 10317, 'bufnr': 5, 'col': 0, 'valid': 1, 'vcol': 0, 'nr':
-1, 'type': '', 'pattern': '', 'text': '
ResetRedobuff();'}]
:let x = getloclist(0)
:echo x
[{'lnum': 404, 'bufnr': 1, 'col': 0, 'valid': 1, 'vcol': 0, 'nr': -1,
'type': '', 'pattern': '', 'text': ' ResetRedobuff();'},
{'lnum': 6436, 'bufnr': 1, 'col': 0, 'valid': 1, 'vcol':
0, 'nr': -1, 'type': '', 'pattern': '', 'text': '
ResetRedobuff();'}, {'lnum': 1176, 'bufnr': 3, 'col': 0, 'valid': 1,
'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'text': '
ResetRedobuff();'}, {'lnum': 1177, 'bufnr': 3, 'col': 0,
'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'text':
' ResetRedobuff();'}, {'lnum': 1506, 'bufnr': 4, 'col'
: 0, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '',
'text': ' ResetRedobuff();'}, {'lnum': 3626,
'bufnr': 4, 'col': 0, 'valid': 1, 'vcol': 0, 'nr': -1, 'type':
'', 'pattern': '', 'text': ' ResetRedobuff();'}, {'lnum':
7380, 'bufnr': 4, 'col': 0, 'valid': 1, 'vcol': 0, 'nr': -1, 'type':
'', 'pattern': '', 'text': ' ResetRedobuff();'
}, {'lnum': 10317, 'bufnr': 5, 'col': 0, 'valid': 1, 'vcol': 0, 'nr':
-1, 'type': '', 'pattern': '', 'text': '
ResetRedobuff();'}]
:call setloclist(0,[])
:call setloclist(0, x)
:lopen " filenames are missing
|404| ResetRedobuff();
|6436| ResetRedobuff();
|1176| ResetRedobuff();
|1177| ResetRedobuff();
|1506| ResetRedobuff();
|3626| ResetRedobuff();
|7380| ResetRedobuff();
|10317| ResetRedobuff();
~
:ls!
1 %a "edit.c" line 404
2u - "~/vim7.3/vim73/src" line 1
3u "misc2.c" line 0
4u "normal.c" line 0
5u "spell.c" line 0
7 a- "[Location List]" line 0
8 # "getchar.c" line 463
thanks
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment