Christian wrote:
> On Di, 21 Mai 2019, Jason Franklin wrote: > > > > Does this also fix https://github.com/vim/vim/issues/4352 I suppose not? > > > > No, it does not fix that issue. > > > > However, I'm not exactly sure that the issue referenced is a valid > > complaint. It was my understanding that buffer numbers are simply id > > numbers and shouldn't be relied upon for anything other than referencing > > a particular buffer. The fact that the order changed shouldn't matter. > > I'm not opposed to fixing this... I just don't get why it would be > > important since the point of a session is to restore the views on all > > of the files you were editing when the session was saved. > > > > Am I wrong about this? > > That's what I was thinking about. I am not sure that a session > guarantees, that buffer numbers stay stable. Perhaps that should be > mentioned in the documentation if one can expect it or not. If a user is relying on the ":bnext" behavior then it matters. E.g. if you edit a bunch of files in sequence you can do ":brewind" and then ":bnext" to go through the same files again. > I did have a look at fixing this, but my attempts could not make > guarantee exactly this. So I am actually sympathetic with closing this > issue, but wasn't sure. It's tricky to get exactly the right behavior. Perhaps using :argadd works to create the buffers without actually opening them or any other side effects. Then later reset the argument list. -- hundred-and-one symptoms of being an internet addict: 3. Your bookmark takes 15 minutes to scroll from top to bottom. /// 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/201905211855.x4LIt4Ss008117%40masaka.moolenaar.net. For more options, visit https://groups.google.com/d/optout.
