Steps to reproduce: - Open any three 3 buffers. - :python import vim - :python for b in vim.buffers: print b.name+' '+b[0]
Expected output: [Filename of buffer A] - [first line of buffer A] [Filename of buffer B] - [first line of buffer B] [Filename of buffer C] - [first line of buffer C] My output: The buffer names/file names are printed correctly, but the first line of the buffer will only be printed if the buffer is visible in a window. e.g. If I'm viewing B when I issue the command, the first line for A and C will be blank, but the first line of buffer B will be displayed. If I split windows and view B and C at once, A will not display the first line of the buffer, but B and C will. Is there some reason that I can only access the lines of buffers which are visible in a window? I tested this on Windows 7 with Vim 7.3 and XP with 7.2 (Python 2.6.5). Please let me know if I need to provide any information. Thanks! -- You received this message from the "vim_dev" 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
