Patch 7.4.801 (after 7.4.769)
Problem:    Test for ":diffoff" doesn't catch all potential problems.
Solution:   Add a :diffthis and a :diffoff command. (Olaf Dabrunz)
Files:      src/testdir/test47.in


*** ../vim-7.4.800/src/testdir/test47.in        2015-07-04 15:05:08.606736259 
+0200
--- src/testdir/test47.in       2015-07-28 14:37:53.316858455 +0200
***************
*** 21,26 ****
--- 21,30 ----
  :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
    gg pgg:let one = winline()
***************
*** 48,53 ****
--- 52,63 ----
  :"
  :" Test diffoff
  :diffoff!
+ 1  
+ :let &diff = 1
+ :let &fdm = diff_fdm
+ :let &fdc = diff_fdc
+ 4  
+ :diffoff!
  :$put =nodiffsettings
  :$put =diffsettings
  1  
***************
*** 82,88 ****
  :enew
  :put =w0
  :.w >> test.out
! :unlet! one two three nodiffsettings diffsettings nd1 nd2 nd3 w0
  :qa!
  ENDTEST
  
--- 92,98 ----
  :enew
  :put =w0
  :.w >> test.out
! :unlet! one two three nodiffsettings diffsettings diff_fdm diff_fdc nd1 nd2 
nd3 w0
  :qa!
  ENDTEST
  
*** ../vim-7.4.800/src/version.c        2015-07-28 14:25:41.848151118 +0200
--- src/version.c       2015-07-28 14:40:19.143395365 +0200
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     801,
  /**/

-- 
FIRST HEAD:  Oh! quick! get the sword out I want to cut his head off.
THIRD HEAD:  Oh, cut your own head off.
SECOND HEAD: Yes - do us all a favour.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

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

Raspunde prin e-mail lui