On 2014-11-22, Gary Johnson wrote:
> 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.

I thought I could help move this along by finding the patch that
introduced the problem.  I started building older versions at home
to find a version without the problem, but I've gone back as far as
7.4.273 from April 29 and the problem, as demonstrated by my test
above, is still there.  Yet, I only started seeing the problem at
work recently.  So what changed?

I'll try to find an old version that doesn't exhibit the problem in
my normal work environment.

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