Problem: Test for ":diffoff" doesn't catch all potential problems.
Solution: Add a :diffthis and a :diffoff command. (Olaf Dabrunz)
:redir => diffsettings
:silent! :set diff? fdm? fdc? scb? crb? wrap?
:redir END
+:let diff_fdm = &fdm
+:let diff_fdc = &fdc
+:" repeat entering diff mode here to see if this saves the wrong settings
+:diffthis
:" jump to second window for a moment to have filler line appear at start of
:" first window
\17\17gg\17pgg:let one = winline()
:"
:" Test diffoff
:diffoff!
+1\17\17
+:let &diff = 1
+:let &fdm = diff_fdm
+:let &fdc = diff_fdc
+4\17\17
+:diffoff!
:$put =nodiffsettings
:$put =diffsettings
1\17\17
:enew
:put =w0
:.w >> test.out
-:unlet! one two three nodiffsettings diffsettings nd1 nd2 nd3 w0
+:unlet! one two three nodiffsettings diffsettings diff_fdm diff_fdc nd1 nd2 nd3 w0
:qa!
ENDTEST
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 801,
/**/
800,
/**/