mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.801
Problem: Test for ":diffoff" doesn't catch all potential problems.
Solution: Add a :diffthis and a :diffoff command. (Olaf Dabrunz)
278236000f
This commit is contained in:
parent
39e5d9287e
commit
31aa060bca
@ -21,6 +21,10 @@ ggoyyyjjjozzzz
|
|||||||
:redir => diffsettings
|
:redir => diffsettings
|
||||||
:silent! :set diff? fdm? fdc? scb? crb? wrap?
|
:silent! :set diff? fdm? fdc? scb? crb? wrap?
|
||||||
:redir END
|
: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
|
:" jump to second window for a moment to have filler line appear at start of
|
||||||
:" first window
|
:" first window
|
||||||
ggpgg:let one = winline()
|
ggpgg:let one = winline()
|
||||||
@ -48,6 +52,12 @@ j:let three = three . "-" . winline()
|
|||||||
:"
|
:"
|
||||||
:" Test diffoff
|
:" Test diffoff
|
||||||
:diffoff!
|
:diffoff!
|
||||||
|
1
|
||||||
|
:let &diff = 1
|
||||||
|
:let &fdm = diff_fdm
|
||||||
|
:let &fdc = diff_fdc
|
||||||
|
4
|
||||||
|
:diffoff!
|
||||||
:$put =nodiffsettings
|
:$put =nodiffsettings
|
||||||
:$put =diffsettings
|
:$put =diffsettings
|
||||||
1
|
1
|
||||||
@ -82,7 +92,7 @@ j:let three = three . "-" . winline()
|
|||||||
:enew
|
:enew
|
||||||
:put =w0
|
:put =w0
|
||||||
:.w >> test.out
|
:.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!
|
:qa!
|
||||||
ENDTEST
|
ENDTEST
|
||||||
|
|
||||||
|
@ -487,7 +487,7 @@ static int included_patches[] = {
|
|||||||
// 804,
|
// 804,
|
||||||
803,
|
803,
|
||||||
802,
|
802,
|
||||||
// 801,
|
801,
|
||||||
// 800,
|
// 800,
|
||||||
799,
|
799,
|
||||||
// 798,
|
// 798,
|
||||||
|
Loading…
Reference in New Issue
Block a user