Christian Brabandt wrote: > On Di, 20 Aug 2013, Marius Gedminas wrote: > > > Vim 7.4 broke my svn filetype plugin > > (http://mg.pov.lt/vim/ftplugin/svn.vim). > > > > The plugin opens a new split window and puts the output of 'svn diff' in > > there when I run 'svn commit'. This window gets some attributes set, > > including 'previewwindow', which I use to make vim quit as soon as I > > close the svn-commit.tmp file. > > > > With vim 7.4 the preview window appears empty (lacking even a status > > line), and you cannot switch to it with Ctrl-W W. > > > > Steps to reproduce: > > > > echo "au BufRead,BufNewFile * new|put ='some text'|setlocal pvw" > bug.vim > > vim -u bug.vim newfile.txt > > > > Expected behavior (which I get with vim 7.3.547, and which I used to get > > with 7.3.verylargenumbers): > > > > http://i.imgur.com/MRN6f9c.png -- you get two windows, with some text > > in the first one > > > > Actual behavior: > > > > http://i.imgur.com/0KKz1i3.png -- the preview window takes up space, > > but is completely blank, doesn't even have a statusline, and cannot be > > switched to. > > > > Note: if you run vim -u bug.vim, and then open a new file with :e, this > > bug doesn't show up. > > I might have caused this with patch 7.3.1201. Strange, this error didn't > happen with my plugin. Anyway, here is an alternative approach:
Thanks. However, entering a window may have side effects, I think it's better to avoid doing it twice. -- hundred-and-one symptoms of being an internet addict: 104. When people ask about the Presidential Election you ask "Which country?" /// 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.
