Hirohito Higashi wrote:
> How to reproduce:
> - Prepare following Vim script file named `test.vim`.
> func Prepare_diffthis()
> au DiffUpdated * echomsg expand("<afile>")
>
> let bufnames = map(range(1,4), '"buf_" . v:val')
> for bn in bufnames
> let cmd = (bn[-1:] == "1") ? "edit" : "rightbelow vnew"
> exec cmd bn
> call setline(1, "Contents of " . bn)
> endfor
> endfunc
>
> - Start vanilla Vim with the script above.
> $ vim --clean -S test.vim
> - Execute function
> :call Prepare_diffthis()
> - Perform `diffthis` for all windows.
> :windo diffthis
>
> Expected behavior (I think):
> - DiffUpdated is triggered for all windows.
> buf_1
> buf_2
> buf_3
> buf_4
>
> Actual behavior:
> - DiffUpdated is not triggered for the first window. (Message `buf_1` is not
> displayed)
> buf_2
> buf_3
> buf_4
>
>
> Continue to do the following command:
> :windo diffoff
>
> Expected behavior (I think):
> - DiffUpdated is triggered for all windows.
> buf_1
> buf_2
> buf_3
> buf_4
>
> Actual behavior:
> - DiffUpdated is not triggered for the last window. (Message `buf_4` is not
> displayed)
> buf_1
> buf_2
> buf_3
>
>
> A Patch attached.
> Please check it.
> There may be room for discussion about judgment conditions :)
Thanks for looking into this, but it's not the right solution.
The w_p_diff_saved flag is always set, thus it would redraw much too
often.
--
'Well, here's something to occupy you and keep your mind off things.'
'It won't work, I have an exceptionally large mind.'
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
/// 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/d/optout.