Vlad Irnov wrote:
> I get E315 errors in Vim 7.4a, but not in Vim 7.3.829 and earlier.
> In a nutshell, when a buffer in another window is modified via Python
> buffer object, folds in the current buffer get messed up, jumping to
> the last line results in multiple E315.
>
> The script below shows how to reproduce (also attached).
>
> Specs: gVim 7.4a BETA (extracted from Windows installer, not
> installed), Windows 8 64-bit, Python 2.7.5, Python 3.3.2. (I did not
> test this with Python 3 because dll versions don't match.)
>
> " ---BEGIN---
> " Create buffer 1 with closed folds.
> tabnew Buffer1
> call setline(1, ['','aaa {{{1','bbb {{{2','ccc {{{3'])
> setl fdm=marker fdt=getline(v:foldstart) fdl=0
> " Create buffer 2 in another window.
> new Buffer2
> py import vim
> py B2=vim.current.buffer
> " Go back to buffer 1. Modify buffer 2 via Python.
> wincmd w
> " This alone messes up folding in the current buffer.
> py B2.append(['xxx','yyy'])
> " This results in multiple 'E315: ml_get: invalid lnum: 6'.
> " A spurious window appears sometimes.
> " Custom statusline and tabline are also disrupted.
> normal! ggVG
> " ---END---
Thanks for the reproducible example. I indeed get the errors when
sourcing the script.
--
A fool must search for a greater fool to find admiration.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.