mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
1c84a0e090
commit
57d497c51b
@ -33,6 +33,7 @@ SCRIPTS := test_autoformat_join.out \
|
||||
test106.out test107.out \
|
||||
test_options.out \
|
||||
test_listlbr.out test_listlbr_utf8.out \
|
||||
test_changelist.out \
|
||||
test_breakindent.out \
|
||||
test_insertcount.out
|
||||
|
||||
|
22
src/nvim/testdir/test_changelist.in
Normal file
22
src/nvim/testdir/test_changelist.in
Normal 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
|
1
src/nvim/testdir/test_changelist.ok
Normal file
1
src/nvim/testdir/test_changelist.ok
Normal file
@ -0,0 +1 @@
|
||||
pass
|
@ -242,7 +242,7 @@ static int included_patches[] = {
|
||||
//389,
|
||||
388,
|
||||
387,
|
||||
//386,
|
||||
386,
|
||||
//385,
|
||||
//384 NA
|
||||
383,
|
||||
|
@ -948,6 +948,9 @@ int win_split_ins(int size, int flags, win_T *new_wp, int dir)
|
||||
p_wh = size;
|
||||
}
|
||||
|
||||
// Keep same changelist position in new window.
|
||||
wp->w_changelistidx = oldwin->w_changelistidx;
|
||||
|
||||
/*
|
||||
* make the new window the current window
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user