I noticed recently when using vimdiff and a 'diffexpr' that the
screen is no longer redrawn properly after certain commands such as
:diffu.  Sometimes the screen is left completely blank; at other
times only a few scattered characters are redrawn.  Typing Ctrl-L
fixes the display.

This can be demonstrated as follows.  Create a vimrc file with these
contents.

---------------------------- vimrc.test ----------------------------
set diffexpr=MyDiff()

function MyDiff()
    silent execute "!diff" v:fname_in v:fname_new ">" v:fname_out
endfunction
--------------------------------------------------------------------

The MyDiff() function was copied from ":help diff-diffexpr" and
simplified.  (I normally use a MyDiff() function that differs
slightly from the example.)

Then execute this command, where file1 and file2 are two text files.
Their contents don't matter.

    vimdiff -N -u vimrc.test --noplugin file1 file2

Then execute

    :diffu

Notice that not all of the screen is redrawn.  This happens when
executing other commands, too, such as

    :set diffopt+=iwhite

This does not happen if 'diffexpr' is not set.

I am using a normal build of Vim 7.4.526 and running on Fedora 14
and Fedora 17.

I'm not sure exactly when this behavior changed.  I think it was
after an upgrade in early October.  I can find out at work on
Monday, where I keep better records of my builds than I do at home.

Regards,
Gary

-- 
-- 
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.

Raspunde prin e-mail lui