vim-patch:7.4.386

Problem:    When splitting a window the changelist position is wrong.
Solution:   Copy the changelist position. (Jacob Niehus)

https://code.google.com/p/vim/source/detail?r=v7-4-386
This commit is contained in:
André Twupack 2014-09-22 20:46:28 +02:00
parent 1c84a0e090
commit 57d497c51b
5 changed files with 28 additions and 1 deletions

View File

@ -33,6 +33,7 @@ SCRIPTS := test_autoformat_join.out \
test106.out test107.out \ test106.out test107.out \
test_options.out \ test_options.out \
test_listlbr.out test_listlbr_utf8.out \ test_listlbr.out test_listlbr_utf8.out \
test_changelist.out \
test_breakindent.out \ test_breakindent.out \
test_insertcount.out test_insertcount.out

View File

@ -0,0 +1,22 @@
Test changelist position after splitting window
Set 'undolevels' to make changelist for sourced file
STARTTEST
:so small.vim
Gkylp:set ul=100
Gylp:set ul=100
gg
:vsplit
:try
: normal g;
: normal ggVGcpass
:catch
: normal ggVGcfail
:finally
: %w! test.out
:endtry
:qa!
ENDTEST
1
2

View File

@ -0,0 +1 @@
pass

View File

@ -242,7 +242,7 @@ static int included_patches[] = {
//389, //389,
388, 388,
387, 387,
//386, 386,
//385, //385,
//384 NA //384 NA
383, 383,

View File

@ -948,6 +948,9 @@ int win_split_ins(int size, int flags, win_T *new_wp, int dir)
p_wh = size; p_wh = size;
} }
// Keep same changelist position in new window.
wp->w_changelistidx = oldwin->w_changelistidx;
/* /*
* make the new window the current window * make the new window the current window
*/ */