Re: BufReadPost: surprising behavior?
- On Sun, 02 Jun 2002 20:25:29 +0200 Bram Moolenaar <Bram@...> wrote:
> The reason is that reloading the file is done by reading the new fileThanks!
> contents into the existing buffer and then deleting the old lines. This
> avoids that the current buffer contents is lost when reading the file
> fails for some reason.
> Obviously your BufRead autocommands change the old text unexpectedly.
> The code isn't prepared for this. I'll think about a solution to avoid
> this problem.