jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.470

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