|
Karsten Hopp |
0588a3 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
0588a3 |
Subject: Patch 7.4.769
|
|
Karsten Hopp |
0588a3 |
Fcc: outbox
|
|
Karsten Hopp |
0588a3 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
0588a3 |
Mime-Version: 1.0
|
|
Karsten Hopp |
0588a3 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
0588a3 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
0588a3 |
------------
|
|
Karsten Hopp |
0588a3 |
|
|
Karsten Hopp |
0588a3 |
Patch 7.4.769 (after 7.4 768)
|
|
Karsten Hopp |
0588a3 |
Problem: Behavior of :diffoff is not tested.
|
|
Karsten Hopp |
0588a3 |
Solution: Add a bit of testing. (Olaf Dabrunz)
|
|
Karsten Hopp |
0588a3 |
Files: src/testdir/test47.in, src/testdir/test47.ok
|
|
Karsten Hopp |
0588a3 |
|
|
Karsten Hopp |
0588a3 |
|
|
Karsten Hopp |
0588a3 |
*** ../vim-7.4.768/src/testdir/test47.in 2012-10-21 22:08:44.000000000 +0200
|
|
Karsten Hopp |
0588a3 |
--- src/testdir/test47.in 2015-07-04 15:00:48.065450222 +0200
|
|
Karsten Hopp |
0588a3 |
***************
|
|
Karsten Hopp |
0588a3 |
*** 1,5 ****
|
|
Karsten Hopp |
0588a3 |
--- 1,7 ----
|
|
Karsten Hopp |
0588a3 |
Tests for vertical splits and filler lines in diff mode
|
|
Karsten Hopp |
0588a3 |
|
|
Karsten Hopp |
0588a3 |
+ Also tests restoration of saved options by :diffoff.
|
|
Karsten Hopp |
0588a3 |
+
|
|
Karsten Hopp |
0588a3 |
STARTTEST
|
|
Karsten Hopp |
0588a3 |
:so small.vim
|
|
Karsten Hopp |
0588a3 |
:" Disable the title to avoid xterm keeping the wrong one.
|
|
Karsten Hopp |
0588a3 |
***************
|
|
Karsten Hopp |
0588a3 |
*** 10,17 ****
|
|
Karsten Hopp |
0588a3 |
--- 12,26 ----
|
|
Karsten Hopp |
0588a3 |
ddGpkkrXoxxx?:w! Xtest2
|
|
Karsten Hopp |
0588a3 |
:file Nop
|
|
Karsten Hopp |
0588a3 |
ggoyyy?jjjozzzz?
|
|
Karsten Hopp |
0588a3 |
+ :set foldmethod=marker foldcolumn=4
|
|
Karsten Hopp |
0588a3 |
+ :redir => nodiffsettings
|
|
Karsten Hopp |
0588a3 |
+ :silent! :set diff? fdm? fdc? scb? crb? wrap?
|
|
Karsten Hopp |
0588a3 |
+ :redir END
|
|
Karsten Hopp |
0588a3 |
:vert diffsplit Xtest
|
|
Karsten Hopp |
0588a3 |
:vert diffsplit Xtest2
|
|
Karsten Hopp |
0588a3 |
+ :redir => diffsettings
|
|
Karsten Hopp |
0588a3 |
+ :silent! :set diff? fdm? fdc? scb? crb? wrap?
|
|
Karsten Hopp |
0588a3 |
+ :redir END
|
|
Karsten Hopp |
0588a3 |
:" jump to second window for a moment to have filler line appear at start of
|
|
Karsten Hopp |
0588a3 |
:" first window
|
|
Karsten Hopp |
0588a3 |
??gg?pgg:let one = winline()
|
|
Karsten Hopp |
0588a3 |
***************
|
|
Karsten Hopp |
0588a3 |
*** 36,43 ****
|
|
Karsten Hopp |
0588a3 |
:call append("$", two)
|
|
Karsten Hopp |
0588a3 |
:call append("$", three)
|
|
Karsten Hopp |
0588a3 |
:$-2,$w! test.out
|
|
Karsten Hopp |
0588a3 |
! :" Test that diffing shows correct filler lines
|
|
Karsten Hopp |
0588a3 |
:diffoff!
|
|
Karsten Hopp |
0588a3 |
:windo :bw!
|
|
Karsten Hopp |
0588a3 |
:enew
|
|
Karsten Hopp |
0588a3 |
:put =range(4,10)
|
|
Karsten Hopp |
0588a3 |
--- 45,74 ----
|
|
Karsten Hopp |
0588a3 |
:call append("$", two)
|
|
Karsten Hopp |
0588a3 |
:call append("$", three)
|
|
Karsten Hopp |
0588a3 |
:$-2,$w! test.out
|
|
Karsten Hopp |
0588a3 |
! :"
|
|
Karsten Hopp |
0588a3 |
! :" Test diffoff
|
|
Karsten Hopp |
0588a3 |
:diffoff!
|
|
Karsten Hopp |
0588a3 |
+ :$put =nodiffsettings
|
|
Karsten Hopp |
0588a3 |
+ :$put =diffsettings
|
|
Karsten Hopp |
0588a3 |
+ 1??
|
|
Karsten Hopp |
0588a3 |
+ :redir => nd1
|
|
Karsten Hopp |
0588a3 |
+ :silent! :set diff? fdm? fdc? scb? crb? wrap?
|
|
Karsten Hopp |
0588a3 |
+ :redir END
|
|
Karsten Hopp |
0588a3 |
+ ??
|
|
Karsten Hopp |
0588a3 |
+ :redir => nd2
|
|
Karsten Hopp |
0588a3 |
+ :silent! :set diff? fdm? fdc? scb? crb? wrap?
|
|
Karsten Hopp |
0588a3 |
+ :redir END
|
|
Karsten Hopp |
0588a3 |
+ ??
|
|
Karsten Hopp |
0588a3 |
+ :redir => nd3
|
|
Karsten Hopp |
0588a3 |
+ :silent! :set diff? fdm? fdc? scb? crb? wrap?
|
|
Karsten Hopp |
0588a3 |
+ :redir END
|
|
Karsten Hopp |
0588a3 |
+ ??
|
|
Karsten Hopp |
0588a3 |
+ :$put =nd1
|
|
Karsten Hopp |
0588a3 |
+ :$put =nd2
|
|
Karsten Hopp |
0588a3 |
+ :$put =nd3
|
|
Karsten Hopp |
0588a3 |
+ :$-39,$w >> test.out
|
|
Karsten Hopp |
0588a3 |
+ :"
|
|
Karsten Hopp |
0588a3 |
+ :" Test that diffing shows correct filler lines
|
|
Karsten Hopp |
0588a3 |
:windo :bw!
|
|
Karsten Hopp |
0588a3 |
:enew
|
|
Karsten Hopp |
0588a3 |
:put =range(4,10)
|
|
Karsten Hopp |
0588a3 |
***************
|
|
Karsten Hopp |
0588a3 |
*** 51,57 ****
|
|
Karsten Hopp |
0588a3 |
:enew
|
|
Karsten Hopp |
0588a3 |
:put =w0
|
|
Karsten Hopp |
0588a3 |
:.w >> test.out
|
|
Karsten Hopp |
0588a3 |
! :unlet! one two three w0
|
|
Karsten Hopp |
0588a3 |
:qa!
|
|
Karsten Hopp |
0588a3 |
ENDTEST
|
|
Karsten Hopp |
0588a3 |
|
|
Karsten Hopp |
0588a3 |
--- 82,88 ----
|
|
Karsten Hopp |
0588a3 |
:enew
|
|
Karsten Hopp |
0588a3 |
:put =w0
|
|
Karsten Hopp |
0588a3 |
:.w >> test.out
|
|
Karsten Hopp |
0588a3 |
! :unlet! one two three nodiffsettings diffsettings nd1 nd2 nd3 w0
|
|
Karsten Hopp |
0588a3 |
:qa!
|
|
Karsten Hopp |
0588a3 |
ENDTEST
|
|
Karsten Hopp |
0588a3 |
|
|
Karsten Hopp |
0588a3 |
*** ../vim-7.4.768/src/testdir/test47.ok 2012-10-21 22:08:44.000000000 +0200
|
|
Karsten Hopp |
0588a3 |
--- src/testdir/test47.ok 2015-07-04 15:00:48.065450222 +0200
|
|
Karsten Hopp |
0588a3 |
***************
|
|
Karsten Hopp |
0588a3 |
*** 1,4 ****
|
|
Karsten Hopp |
0588a3 |
--- 1,44 ----
|
|
Karsten Hopp |
0588a3 |
2-4-5-6-8-9
|
|
Karsten Hopp |
0588a3 |
1-2-4-5-8
|
|
Karsten Hopp |
0588a3 |
2-3-4-5-6-7-8
|
|
Karsten Hopp |
0588a3 |
+
|
|
Karsten Hopp |
0588a3 |
+
|
|
Karsten Hopp |
0588a3 |
+ nodiff
|
|
Karsten Hopp |
0588a3 |
+ foldmethod=marker
|
|
Karsten Hopp |
0588a3 |
+ foldcolumn=4
|
|
Karsten Hopp |
0588a3 |
+ noscrollbind
|
|
Karsten Hopp |
0588a3 |
+ nocursorbind
|
|
Karsten Hopp |
0588a3 |
+ wrap
|
|
Karsten Hopp |
0588a3 |
+
|
|
Karsten Hopp |
0588a3 |
+
|
|
Karsten Hopp |
0588a3 |
+ diff
|
|
Karsten Hopp |
0588a3 |
+ foldmethod=diff
|
|
Karsten Hopp |
0588a3 |
+ foldcolumn=2
|
|
Karsten Hopp |
0588a3 |
+ scrollbind
|
|
Karsten Hopp |
0588a3 |
+ cursorbind
|
|
Karsten Hopp |
0588a3 |
+ nowrap
|
|
Karsten Hopp |
0588a3 |
+
|
|
Karsten Hopp |
0588a3 |
+
|
|
Karsten Hopp |
0588a3 |
+ nodiff
|
|
Karsten Hopp |
0588a3 |
+ foldmethod=marker
|
|
Karsten Hopp |
0588a3 |
+ foldcolumn=4
|
|
Karsten Hopp |
0588a3 |
+ noscrollbind
|
|
Karsten Hopp |
0588a3 |
+ nocursorbind
|
|
Karsten Hopp |
0588a3 |
+ wrap
|
|
Karsten Hopp |
0588a3 |
+
|
|
Karsten Hopp |
0588a3 |
+
|
|
Karsten Hopp |
0588a3 |
+ nodiff
|
|
Karsten Hopp |
0588a3 |
+ foldmethod=marker
|
|
Karsten Hopp |
0588a3 |
+ foldcolumn=4
|
|
Karsten Hopp |
0588a3 |
+ noscrollbind
|
|
Karsten Hopp |
0588a3 |
+ nocursorbind
|
|
Karsten Hopp |
0588a3 |
+ wrap
|
|
Karsten Hopp |
0588a3 |
+
|
|
Karsten Hopp |
0588a3 |
+
|
|
Karsten Hopp |
0588a3 |
+ nodiff
|
|
Karsten Hopp |
0588a3 |
+ foldmethod=marker
|
|
Karsten Hopp |
0588a3 |
+ foldcolumn=4
|
|
Karsten Hopp |
0588a3 |
+ noscrollbind
|
|
Karsten Hopp |
0588a3 |
+ nocursorbind
|
|
Karsten Hopp |
0588a3 |
+ wrap
|
|
Karsten Hopp |
0588a3 |
1
|
|
Karsten Hopp |
0588a3 |
*** ../vim-7.4.768/src/version.c 2015-07-03 15:06:49.718360566 +0200
|
|
Karsten Hopp |
0588a3 |
--- src/version.c 2015-07-04 15:02:15.644538282 +0200
|
|
Karsten Hopp |
0588a3 |
***************
|
|
Karsten Hopp |
0588a3 |
*** 743,744 ****
|
|
Karsten Hopp |
0588a3 |
--- 743,746 ----
|
|
Karsten Hopp |
0588a3 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
0588a3 |
+ /**/
|
|
Karsten Hopp |
0588a3 |
+ 769,
|
|
Karsten Hopp |
0588a3 |
/**/
|
|
Karsten Hopp |
0588a3 |
|
|
Karsten Hopp |
0588a3 |
--
|
|
Karsten Hopp |
0588a3 |
The CIA drives around in cars with the "Intel inside" logo.
|
|
Karsten Hopp |
0588a3 |
|
|
Karsten Hopp |
0588a3 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
0588a3 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
0588a3 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
0588a3 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|