Alexei Alexandrov wrote:
> On 11/4/07, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > > > > I'll put it in the todo list. However, don't expect it soon. I think > > the only right way to implement it is to do a diff between the buffer > > text and the file that is to be loaded. The difference would then be > > stored as a change in the undo buffer. > > Yes, this would be the most correct way. It is also not very easy to > implement perhaps? It probably needs to depend on an external diff program. That's both a bit unreliable (esp. on MS-Windows where executing external programs is not simple) and can be slow. I once looked into including diff code into Vim, but could only find code that is relatively complicated. If someone knows a nice, well-behaving, small diff algorithm implementation in C that would help a lot. -- >From "know your smileys": O:-) Saint /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---