Karsten Hopp 1fb300
To: vim_dev@googlegroups.com
Karsten Hopp 1fb300
Subject: Patch 7.4.098
Karsten Hopp 1fb300
Fcc: outbox
Karsten Hopp 1fb300
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 1fb300
Mime-Version: 1.0
Karsten Hopp 1fb300
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 1fb300
Content-Transfer-Encoding: 8bit
Karsten Hopp 1fb300
------------
Karsten Hopp 1fb300
Karsten Hopp 1fb300
Patch 7.4.098
Karsten Hopp 1fb300
Problem:    When using ":'<,'>del" errors may be given for the visual line
Karsten Hopp 1fb300
            numbers being out of range.
Karsten Hopp 1fb300
Solution:   Reset Visual mode in ":del". (Lech Lorens)
Karsten Hopp 1fb300
Files:      src/ex_docmd.c, src/testdir/test103.in, src/testdir/test103.ok,
Karsten Hopp 1fb300
            src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak,
Karsten Hopp 1fb300
            src/testdir/Make_ming.mak, src/testdir/Make_os2.mak,
Karsten Hopp 1fb300
            src/testdir/Make_vms.mms, src/testdir/Makefile
Karsten Hopp 1fb300
Karsten Hopp 1fb300
Karsten Hopp 1fb300
*** ../vim-7.4.097/src/ex_docmd.c	2013-11-09 05:30:18.000000000 +0100
Karsten Hopp 1fb300
--- src/ex_docmd.c	2013-11-21 14:04:55.000000000 +0100
Karsten Hopp 1fb300
***************
Karsten Hopp 1fb300
*** 8570,8575 ****
Karsten Hopp 1fb300
--- 8570,8580 ----
Karsten Hopp 1fb300
  	beginline(BL_SOL | BL_FIX);
Karsten Hopp 1fb300
      }
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
+ #if defined(FEAT_VISUAL)
Karsten Hopp 1fb300
+     if (VIsual_active)
Karsten Hopp 1fb300
+ 	end_visual_mode();
Karsten Hopp 1fb300
+ #endif
Karsten Hopp 1fb300
+ 
Karsten Hopp 1fb300
      switch (eap->cmdidx)
Karsten Hopp 1fb300
      {
Karsten Hopp 1fb300
  	case CMD_delete:
Karsten Hopp 1fb300
*** ../vim-7.4.097/src/testdir/test103.in	2013-11-21 14:21:12.000000000 +0100
Karsten Hopp 1fb300
--- src/testdir/test103.in	2013-11-21 14:02:09.000000000 +0100
Karsten Hopp 1fb300
***************
Karsten Hopp 1fb300
*** 0 ****
Karsten Hopp 1fb300
--- 1,37 ----
Karsten Hopp 1fb300
+ Test for visual mode not being reset causing E315 error.
Karsten Hopp 1fb300
+ STARTTEST
Karsten Hopp 1fb300
+ :so small.vim
Karsten Hopp 1fb300
+ :enew
Karsten Hopp 1fb300
+ :let g:msg="Everything's fine."
Karsten Hopp 1fb300
+ :function! TriggerTheProblem()
Karsten Hopp 1fb300
+ :	" At this point there is no visual selection because :call reset it.
Karsten Hopp 1fb300
+ :	" Let's restore the selection:
Karsten Hopp 1fb300
+ :	normal gv
Karsten Hopp 1fb300
+ :	'<,'>del _
Karsten Hopp 1fb300
+ :	try
Karsten Hopp 1fb300
+ :		exe "normal \<Esc>"
Karsten Hopp 1fb300
+ :	catch /^Vim\%((\a\+)\)\=:E315/
Karsten Hopp 1fb300
+ :		echom 'Snap! E315 error!'
Karsten Hopp 1fb300
+ :		let g:msg='Snap! E315 error!'
Karsten Hopp 1fb300
+ :	endtry
Karsten Hopp 1fb300
+ :endfunction
Karsten Hopp 1fb300
+ :enew
Karsten Hopp 1fb300
+ :setl buftype=nofile
Karsten Hopp 1fb300
+ :call append(line('$'), 'Delete this line.')
Karsten Hopp 1fb300
+ :"
Karsten Hopp 1fb300
+ :"
Karsten Hopp 1fb300
+ :" NOTE: this has to be done by a call to a function because executing :del the
Karsten Hopp 1fb300
+ :"       ex-way will require the colon operator which resets the visual mode thus
Karsten Hopp 1fb300
+ :"       preventing the problem:
Karsten Hopp 1fb300
+ :"
Karsten Hopp 1fb300
+ GV:call TriggerTheProblem()
Karsten Hopp 1fb300
+ :%del _
Karsten Hopp 1fb300
+ :call append(line('$'), g:msg)
Karsten Hopp 1fb300
+ :w! test.out
Karsten Hopp 1fb300
+ :brewind
Karsten Hopp 1fb300
+ ENDTEST
Karsten Hopp 1fb300
+ 
Karsten Hopp 1fb300
+ STARTTEST
Karsten Hopp 1fb300
+ :qa!
Karsten Hopp 1fb300
+ ENDTEST
Karsten Hopp 1fb300
+ 
Karsten Hopp 1fb300
*** ../vim-7.4.097/src/testdir/test103.ok	2013-11-21 14:21:12.000000000 +0100
Karsten Hopp 1fb300
--- src/testdir/test103.ok	2013-11-21 14:02:28.000000000 +0100
Karsten Hopp 1fb300
***************
Karsten Hopp 1fb300
*** 0 ****
Karsten Hopp 1fb300
--- 1,2 ----
Karsten Hopp 1fb300
+ 
Karsten Hopp 1fb300
+ Everything's fine.
Karsten Hopp 1fb300
*** ../vim-7.4.097/src/testdir/Make_amiga.mak	2013-11-12 05:28:08.000000000 +0100
Karsten Hopp 1fb300
--- src/testdir/Make_amiga.mak	2013-11-21 14:02:51.000000000 +0100
Karsten Hopp 1fb300
***************
Karsten Hopp 1fb300
*** 34,40 ****
Karsten Hopp 1fb300
  		test81.out test82.out test83.out test84.out test88.out \
Karsten Hopp 1fb300
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 1fb300
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp 1fb300
! 		test99.out test100.out test101.out test102.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
  .SUFFIXES: .in .out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
--- 34,40 ----
Karsten Hopp 1fb300
  		test81.out test82.out test83.out test84.out test88.out \
Karsten Hopp 1fb300
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 1fb300
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp 1fb300
! 		test99.out test100.out test101.out test102.out test103.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
  .SUFFIXES: .in .out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
***************
Karsten Hopp 1fb300
*** 153,155 ****
Karsten Hopp 1fb300
--- 153,156 ----
Karsten Hopp 1fb300
  test100.out: test100.in
Karsten Hopp 1fb300
  test101.out: test101.in
Karsten Hopp 1fb300
  test102.out: test102.in
Karsten Hopp 1fb300
+ test103.out: test103.in
Karsten Hopp 1fb300
*** ../vim-7.4.097/src/testdir/Make_dos.mak	2013-11-12 05:28:08.000000000 +0100
Karsten Hopp 1fb300
--- src/testdir/Make_dos.mak	2013-11-21 14:02:58.000000000 +0100
Karsten Hopp 1fb300
***************
Karsten Hopp 1fb300
*** 33,39 ****
Karsten Hopp 1fb300
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 1fb300
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 1fb300
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp 1fb300
! 		test100.out test101.out test102.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
--- 33,39 ----
Karsten Hopp 1fb300
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 1fb300
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 1fb300
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp 1fb300
! 		test100.out test101.out test102.out test103.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
*** ../vim-7.4.097/src/testdir/Make_ming.mak	2013-11-12 05:28:08.000000000 +0100
Karsten Hopp 1fb300
--- src/testdir/Make_ming.mak	2013-11-21 14:03:01.000000000 +0100
Karsten Hopp 1fb300
***************
Karsten Hopp 1fb300
*** 53,59 ****
Karsten Hopp 1fb300
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 1fb300
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 1fb300
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp 1fb300
! 		test100out test101.out test102.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
--- 53,59 ----
Karsten Hopp 1fb300
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 1fb300
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 1fb300
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp 1fb300
! 		test100out test101.out test102.out test103.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
  SCRIPTS32 =	test50.out test70.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
*** ../vim-7.4.097/src/testdir/Make_os2.mak	2013-11-12 05:28:08.000000000 +0100
Karsten Hopp 1fb300
--- src/testdir/Make_os2.mak	2013-11-21 14:03:03.000000000 +0100
Karsten Hopp 1fb300
***************
Karsten Hopp 1fb300
*** 35,41 ****
Karsten Hopp 1fb300
  		test81.out test82.out test83.out test84.out test88.out \
Karsten Hopp 1fb300
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 1fb300
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp 1fb300
! 		test100.out test101.out test102.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
  .SUFFIXES: .in .out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
--- 35,41 ----
Karsten Hopp 1fb300
  		test81.out test82.out test83.out test84.out test88.out \
Karsten Hopp 1fb300
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 1fb300
  		test94.out test95.out test96.out test98.out test99.out \
Karsten Hopp 1fb300
! 		test100.out test101.out test102.out test103.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
  .SUFFIXES: .in .out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
*** ../vim-7.4.097/src/testdir/Make_vms.mms	2013-11-12 05:28:08.000000000 +0100
Karsten Hopp 1fb300
--- src/testdir/Make_vms.mms	2013-11-21 14:03:13.000000000 +0100
Karsten Hopp 1fb300
***************
Karsten Hopp 1fb300
*** 4,10 ****
Karsten Hopp 1fb300
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
Karsten Hopp 1fb300
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
Karsten Hopp 1fb300
  #
Karsten Hopp 1fb300
! # Last change:  2013 Nov 12
Karsten Hopp 1fb300
  #
Karsten Hopp 1fb300
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
Karsten Hopp 1fb300
  # Edit the lines in the Configuration section below to select.
Karsten Hopp 1fb300
--- 4,10 ----
Karsten Hopp 1fb300
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
Karsten Hopp 1fb300
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
Karsten Hopp 1fb300
  #
Karsten Hopp 1fb300
! # Last change:  2013 Nov 21
Karsten Hopp 1fb300
  #
Karsten Hopp 1fb300
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
Karsten Hopp 1fb300
  # Edit the lines in the Configuration section below to select.
Karsten Hopp 1fb300
***************
Karsten Hopp 1fb300
*** 79,85 ****
Karsten Hopp 1fb300
  	 test82.out test83.out test84.out test88.out test89.out \
Karsten Hopp 1fb300
  	 test90.out test91.out test92.out test93.out test94.out \
Karsten Hopp 1fb300
  	 test95.out test96.out test97.out test98.out test99.out \
Karsten Hopp 1fb300
! 	 test100.out test101.out test102.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
  # Known problems:
Karsten Hopp 1fb300
  # Test 30: a problem around mac format - unknown reason
Karsten Hopp 1fb300
--- 79,85 ----
Karsten Hopp 1fb300
  	 test82.out test83.out test84.out test88.out test89.out \
Karsten Hopp 1fb300
  	 test90.out test91.out test92.out test93.out test94.out \
Karsten Hopp 1fb300
  	 test95.out test96.out test97.out test98.out test99.out \
Karsten Hopp 1fb300
! 	 test100.out test101.out test102.out test103.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
  # Known problems:
Karsten Hopp 1fb300
  # Test 30: a problem around mac format - unknown reason
Karsten Hopp 1fb300
*** ../vim-7.4.097/src/testdir/Makefile	2013-11-12 05:28:08.000000000 +0100
Karsten Hopp 1fb300
--- src/testdir/Makefile	2013-11-21 14:03:23.000000000 +0100
Karsten Hopp 1fb300
***************
Karsten Hopp 1fb300
*** 30,36 ****
Karsten Hopp 1fb300
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 1fb300
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 1fb300
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp 1fb300
! 		test99.out test100.out test101.out test102.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
  SCRIPTS_GUI = test16.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
--- 30,36 ----
Karsten Hopp 1fb300
  		test84.out test85.out test86.out test87.out test88.out \
Karsten Hopp 1fb300
  		test89.out test90.out test91.out test92.out test93.out \
Karsten Hopp 1fb300
  		test94.out test95.out test96.out test97.out test98.out \
Karsten Hopp 1fb300
! 		test99.out test100.out test101.out test102.out test103.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
  SCRIPTS_GUI = test16.out
Karsten Hopp 1fb300
  
Karsten Hopp 1fb300
*** ../vim-7.4.097/src/version.c	2013-11-21 13:24:36.000000000 +0100
Karsten Hopp 1fb300
--- src/version.c	2013-11-21 14:20:34.000000000 +0100
Karsten Hopp 1fb300
***************
Karsten Hopp 1fb300
*** 740,741 ****
Karsten Hopp 1fb300
--- 740,743 ----
Karsten Hopp 1fb300
  {   /* Add new patch number below this line */
Karsten Hopp 1fb300
+ /**/
Karsten Hopp 1fb300
+     98,
Karsten Hopp 1fb300
  /**/
Karsten Hopp 1fb300
Karsten Hopp 1fb300
-- 
Karsten Hopp 1fb300
I recommend ordering large cargo containers of paper towels to make up
Karsten Hopp 1fb300
whatever budget underruns you have.  Paper products are always useful and they
Karsten Hopp 1fb300
have the advantage of being completely flushable if you need to make room in
Karsten Hopp 1fb300
the storage area later.
Karsten Hopp 1fb300
				(Scott Adams - The Dilbert principle)
Karsten Hopp 1fb300
Karsten Hopp 1fb300
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 1fb300
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 1fb300
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 1fb300
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///