mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
updated for version 7.4.386
Problem: When splitting a window the changelist position is wrong. Solution: Copy the changelist position. (Jacob Niehus)
This commit is contained in:
@@ -41,6 +41,7 @@ SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
|
||||
test_listlbr.out \
|
||||
test_listlbr_utf8.out \
|
||||
test_qf_title.out \
|
||||
test_changelist.out \
|
||||
test_eval.out \
|
||||
test_options.out
|
||||
|
||||
@@ -171,5 +172,6 @@ test_breakindent.out: test_breakindent.in
|
||||
test_listlbr.out: test_listlbr.in
|
||||
test_listlbr_utf8.out: test_listlbr_utf8.in
|
||||
test_qf_title.out: test_qf_title.in
|
||||
test_changelist.out: test_changelist.in
|
||||
test_eval.out: test_eval.in
|
||||
test_options.out: test_options.in
|
||||
|
@@ -40,6 +40,7 @@ SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
|
||||
test_listlbr.out \
|
||||
test_listlbr_utf8.out \
|
||||
test_qf_title.out \
|
||||
test_changelist.out \
|
||||
test_eval.out \
|
||||
test_options.out
|
||||
|
||||
|
@@ -60,6 +60,7 @@ SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
|
||||
test_listlbr.out \
|
||||
test_listlbr_utf8.out \
|
||||
test_qf_title.out \
|
||||
test_changelist.out \
|
||||
test_eval.out \
|
||||
test_options.out
|
||||
|
||||
|
@@ -38,6 +38,7 @@ SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
|
||||
test100.out test101.out test102.out test103.out test104.out \
|
||||
test105.out test106.out test107.out \
|
||||
test_autoformat_join.out \
|
||||
test_changelist.out \
|
||||
test_eval.out \
|
||||
test_breakindent.out \
|
||||
test_listlbr.out \
|
||||
|
@@ -4,7 +4,7 @@
|
||||
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
|
||||
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
|
||||
#
|
||||
# Last change: 2014 Jul 23
|
||||
# Last change: 2014 Jul 30
|
||||
#
|
||||
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
|
||||
# Edit the lines in the Configuration section below to select.
|
||||
@@ -101,6 +101,7 @@ SCRIPT = test1.out test2.out test3.out test4.out test5.out \
|
||||
test_listlbr.out \
|
||||
test_listlbr_utf8.out \
|
||||
test_qf_title.out \
|
||||
test_changelist.out \
|
||||
test_eval.out \
|
||||
test_options.out
|
||||
|
||||
|
@@ -38,6 +38,7 @@ SCRIPTS = test1.out test2.out test3.out test4.out test5.out test6.out \
|
||||
test_listlbr.out \
|
||||
test_listlbr_utf8.out \
|
||||
test_qf_title.out \
|
||||
test_changelist.out \
|
||||
test_eval.out \
|
||||
test_options.out
|
||||
|
||||
|
22
src/testdir/test_changelist.in
Normal file
22
src/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/testdir/test_changelist.ok
Normal file
1
src/testdir/test_changelist.ok
Normal file
@@ -0,0 +1 @@
|
||||
pass
|
@@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
386,
|
||||
/**/
|
||||
385,
|
||||
/**/
|
||||
|
@@ -1178,6 +1178,11 @@ win_split_ins(size, flags, new_wp, dir)
|
||||
p_wh = size;
|
||||
}
|
||||
|
||||
#ifdef FEAT_JUMPLIST
|
||||
/* Keep same changelist position in new window. */
|
||||
wp->w_changelistidx = oldwin->w_changelistidx;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* make the new window the current window
|
||||
*/
|
||||
|
Reference in New Issue
Block a user