Halim Salman wrote:
> i've noticed something that i believe wasn't there before:
> if i made a few changes to the current buffer in a function (as the result
> of a mapping, for example), they are undone one at a time instead of all at
> once -- basically, it used to treat the entire function block as ONE change.
> take the following simple (and egotistical) function:
> function! Test()
> now, if i execute :call Test(), it changes all s and h to salman and halim,
> respectively, as expected. however, what USED to happen is that if i now i
> u (for undo), it would undo both operations as they were in a function.
> NOW, it undoes them one at a time. in a function that might make a number
> of changes all over the buffer -- such as a reformatter or an
> update-timestamp-at-top-of-file-on-save -- this can require quite a few undo
> especially since i didn't have this behaviour before, i am inclined to
> consider this a bug.
You are right, this is a bug. I'll make a patch for it.
Team-building exercises come in many forms but they all trace their roots back
to the prison system. In your typical team-building exercise the employees
are subjected to a variety of unpleasant situations until they become either a
cohesive team or a ring of car jackers.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- Bram@...
((( Creator of Vim -- http://vim.sf.net
-- ftp://ftp.vim.org/pub/vim )))
\\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org