jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.470

3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.470
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.470
3ef2ca
Problem:    Test 11 and 100 do not work properly on Windows.
3ef2ca
Solution:   Avoid using feedkeys(). (Ken Takata)
3ef2ca
Files:	    src/testdir/Make_dos.mak, src/testdir/test11.in,
3ef2ca
	    src/testdir/test100.in
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.469/src/testdir/Make_dos.mak	2014-08-16 18:36:38.593993280 +0200
3ef2ca
--- src/testdir/Make_dos.mak	2014-10-09 15:26:56.720903277 +0200
3ef2ca
***************
3ef2ca
*** 63,69 ****
3ef2ca
  fixff:
3ef2ca
  	-$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=dos|upd" +q *.in *.ok
3ef2ca
  	-$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=unix|upd" +q \
3ef2ca
! 		dotest.in test60.ok test71.ok test74.ok
3ef2ca
  
3ef2ca
  report:
3ef2ca
  	@echo ""
3ef2ca
--- 63,69 ----
3ef2ca
  fixff:
3ef2ca
  	-$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=dos|upd" +q *.in *.ok
3ef2ca
  	-$(VIMPROG) -u dos.vim --noplugin "+argdo set ff=unix|upd" +q \
3ef2ca
! 		dotest.in test60.ok test71.ok test74.ok test100.ok
3ef2ca
  
3ef2ca
  report:
3ef2ca
  	@echo ""
3ef2ca
*** ../vim-7.4.469/src/testdir/test11.in	2010-08-08 13:16:36.000000000 +0200
3ef2ca
--- src/testdir/test11.in	2014-10-09 15:34:19.588904244 +0200
3ef2ca
***************
3ef2ca
*** 46,58 ****
3ef2ca
  :w>>test.out                    " Append it to the output file
3ef2ca
  :set shelltemp                  " need temp files here
3ef2ca
  :au FilterReadPre   *.out  call rename(expand("<afile>"), expand("<afile>") . ".t")
3ef2ca
! :au FilterReadPre   *.out  exe '!sed s/e/E/ ' . shellescape(expand("<afile>")) . ".t >" . shellescape(expand("<afile>"))
3ef2ca
! :au FilterReadPre   *.out  exe '!rm ' . shellescape(expand("<afile>")) . '.t'
3ef2ca
  :au FilterReadPost  *.out  '[,']s/x/X/g
3ef2ca
  :e! test.out                    " Edit the output file
3ef2ca
  :23,$!cat
3ef2ca
  :23,$s/\r$//                 " remove CR for when sed adds them
3ef2ca
! :au! FileReadPre    *.gz   exe '!gzip -d ' . shellescape(expand("<afile>"))
3ef2ca
  :au  FileReadPre    *.gz   call rename(expand("<afile>:r"), expand("<afile>"))
3ef2ca
  :au! FileReadPost   *.gz   '[,']s/l/L/
3ef2ca
  :$r Xtestfile.gz             " Read compressed file
3ef2ca
--- 46,58 ----
3ef2ca
  :w>>test.out                    " Append it to the output file
3ef2ca
  :set shelltemp                  " need temp files here
3ef2ca
  :au FilterReadPre   *.out  call rename(expand("<afile>"), expand("<afile>") . ".t")
3ef2ca
! :au FilterReadPre   *.out  exe 'silent !sed s/e/E/ ' . shellescape(expand("<afile>")) . ".t >" . shellescape(expand("<afile>"))
3ef2ca
! :au FilterReadPre   *.out  exe 'silent !rm ' . shellescape(expand("<afile>")) . '.t'
3ef2ca
  :au FilterReadPost  *.out  '[,']s/x/X/g
3ef2ca
  :e! test.out                    " Edit the output file
3ef2ca
  :23,$!cat
3ef2ca
  :23,$s/\r$//                 " remove CR for when sed adds them
3ef2ca
! :au! FileReadPre    *.gz   exe 'silent !gzip -d ' . shellescape(expand("<afile>"))
3ef2ca
  :au  FileReadPre    *.gz   call rename(expand("<afile>:r"), expand("<afile>"))
3ef2ca
  :au! FileReadPost   *.gz   '[,']s/l/L/
3ef2ca
  :$r Xtestfile.gz             " Read compressed file
3ef2ca
*** ../vim-7.4.469/src/testdir/test100.in	2014-08-16 17:34:31.186128463 +0200
3ef2ca
--- src/testdir/test100.in	2014-10-09 15:27:44.404903381 +0200
3ef2ca
***************
3ef2ca
*** 16,22 ****
3ef2ca
  :new one
3ef2ca
  :0put ='ONE: expecting global undolevels: 5, local undolevels: -123456 (default)'
3ef2ca
  :call FillBuffer()
3ef2ca
! :call feedkeys(":earlier 10\n", 't')
3ef2ca
  :call UndoLevel()
3ef2ca
  :set ff=unix
3ef2ca
  :%w! test.out
3ef2ca
--- 16,22 ----
3ef2ca
  :new one
3ef2ca
  :0put ='ONE: expecting global undolevels: 5, local undolevels: -123456 (default)'
3ef2ca
  :call FillBuffer()
3ef2ca
! :earlier 10
3ef2ca
  :call UndoLevel()
3ef2ca
  :set ff=unix
3ef2ca
  :%w! test.out
3ef2ca
***************
3ef2ca
*** 24,30 ****
3ef2ca
  :0put ='TWO: expecting global undolevels: 5, local undolevels: 2 (first) then 10 (afterwards)'
3ef2ca
  :setlocal ul=2
3ef2ca
  :call FillBuffer()
3ef2ca
! :call feedkeys(":earlier 10\n", 't')
3ef2ca
  :call UndoLevel()
3ef2ca
  :setlocal ul=10
3ef2ca
  :call UndoLevel()
3ef2ca
--- 24,30 ----
3ef2ca
  :0put ='TWO: expecting global undolevels: 5, local undolevels: 2 (first) then 10 (afterwards)'
3ef2ca
  :setlocal ul=2
3ef2ca
  :call FillBuffer()
3ef2ca
! :earlier 10
3ef2ca
  :call UndoLevel()
3ef2ca
  :setlocal ul=10
3ef2ca
  :call UndoLevel()
3ef2ca
*** ../vim-7.4.469/src/version.c	2014-10-09 14:48:26.284898230 +0200
3ef2ca
--- src/version.c	2014-10-09 15:34:43.088904296 +0200
3ef2ca
***************
3ef2ca
*** 743,744 ****
3ef2ca
--- 743,746 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     470,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
"Marriage is when a man and woman become as one; the trouble starts
3ef2ca
when they try to decide which one"
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///