home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.4 / 7.4.098 < prev    next >
Encoding:
Internet Message Format  |  2013-11-20  |  8.2 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.098
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.4.098
  11. Problem:    When using ":'<,'>del" errors may be given for the visual line
  12.             numbers being out of range.
  13. Solution:   Reset Visual mode in ":del". (Lech Lorens)
  14. Files:      src/ex_docmd.c, src/testdir/test103.in, src/testdir/test103.ok,
  15.             src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak,
  16.             src/testdir/Make_ming.mak, src/testdir/Make_os2.mak,
  17.             src/testdir/Make_vms.mms, src/testdir/Makefile
  18.  
  19.  
  20. *** ../vim-7.4.097/src/ex_docmd.c    2013-11-09 05:30:18.000000000 +0100
  21. --- src/ex_docmd.c    2013-11-21 14:04:55.000000000 +0100
  22. ***************
  23. *** 8570,8575 ****
  24. --- 8570,8580 ----
  25.       beginline(BL_SOL | BL_FIX);
  26.       }
  27.   
  28. + #if defined(FEAT_VISUAL)
  29. +     if (VIsual_active)
  30. +     end_visual_mode();
  31. + #endif
  32.       switch (eap->cmdidx)
  33.       {
  34.       case CMD_delete:
  35. *** ../vim-7.4.097/src/testdir/test103.in    2013-11-21 14:21:12.000000000 +0100
  36. --- src/testdir/test103.in    2013-11-21 14:02:09.000000000 +0100
  37. ***************
  38. *** 0 ****
  39. --- 1,37 ----
  40. + Test for visual mode not being reset causing E315 error.
  41. + STARTTEST
  42. + :so small.vim
  43. + :enew
  44. + :let g:msg="Everything's fine."
  45. + :function! TriggerTheProblem()
  46. + :    " At this point there is no visual selection because :call reset it.
  47. + :    " Let's restore the selection:
  48. + :    normal gv
  49. + :    '<,'>del _
  50. + :    try
  51. + :        exe "normal \<Esc>"
  52. + :    catch /^Vim\%((\a\+)\)\=:E315/
  53. + :        echom 'Snap! E315 error!'
  54. + :        let g:msg='Snap! E315 error!'
  55. + :    endtry
  56. + :endfunction
  57. + :enew
  58. + :setl buftype=nofile
  59. + :call append(line('$'), 'Delete this line.')
  60. + :"
  61. + :"
  62. + :" NOTE: this has to be done by a call to a function because executing :del the
  63. + :"       ex-way will require the colon operator which resets the visual mode thus
  64. + :"       preventing the problem:
  65. + :"
  66. + GV:call TriggerTheProblem()
  67. + :%del _
  68. + :call append(line('$'), g:msg)
  69. + :w! test.out
  70. + :brewind
  71. + ENDTEST
  72. + STARTTEST
  73. + :qa!
  74. + ENDTEST
  75. *** ../vim-7.4.097/src/testdir/test103.ok    2013-11-21 14:21:12.000000000 +0100
  76. --- src/testdir/test103.ok    2013-11-21 14:02:28.000000000 +0100
  77. ***************
  78. *** 0 ****
  79. --- 1,2 ----
  80. + Everything's fine.
  81. *** ../vim-7.4.097/src/testdir/Make_amiga.mak    2013-11-12 05:28:08.000000000 +0100
  82. --- src/testdir/Make_amiga.mak    2013-11-21 14:02:51.000000000 +0100
  83. ***************
  84. *** 34,40 ****
  85.           test81.out test82.out test83.out test84.out test88.out \
  86.           test89.out test90.out test91.out test92.out test93.out \
  87.           test94.out test95.out test96.out test97.out test98.out \
  88. !         test99.out test100.out test101.out test102.out
  89.   
  90.   .SUFFIXES: .in .out
  91.   
  92. --- 34,40 ----
  93.           test81.out test82.out test83.out test84.out test88.out \
  94.           test89.out test90.out test91.out test92.out test93.out \
  95.           test94.out test95.out test96.out test97.out test98.out \
  96. !         test99.out test100.out test101.out test102.out test103.out
  97.   
  98.   .SUFFIXES: .in .out
  99.   
  100. ***************
  101. *** 153,155 ****
  102. --- 153,156 ----
  103.   test100.out: test100.in
  104.   test101.out: test101.in
  105.   test102.out: test102.in
  106. + test103.out: test103.in
  107. *** ../vim-7.4.097/src/testdir/Make_dos.mak    2013-11-12 05:28:08.000000000 +0100
  108. --- src/testdir/Make_dos.mak    2013-11-21 14:02:58.000000000 +0100
  109. ***************
  110. *** 33,39 ****
  111.           test84.out test85.out test86.out test87.out test88.out \
  112.           test89.out test90.out test91.out test92.out test93.out \
  113.           test94.out test95.out test96.out test98.out test99.out \
  114. !         test100.out test101.out test102.out
  115.   
  116.   SCRIPTS32 =    test50.out test70.out
  117.   
  118. --- 33,39 ----
  119.           test84.out test85.out test86.out test87.out test88.out \
  120.           test89.out test90.out test91.out test92.out test93.out \
  121.           test94.out test95.out test96.out test98.out test99.out \
  122. !         test100.out test101.out test102.out test103.out
  123.   
  124.   SCRIPTS32 =    test50.out test70.out
  125.   
  126. *** ../vim-7.4.097/src/testdir/Make_ming.mak    2013-11-12 05:28:08.000000000 +0100
  127. --- src/testdir/Make_ming.mak    2013-11-21 14:03:01.000000000 +0100
  128. ***************
  129. *** 53,59 ****
  130.           test84.out test85.out test86.out test87.out test88.out \
  131.           test89.out test90.out test91.out test92.out test93.out \
  132.           test94.out test95.out test96.out test98.out test99.out \
  133. !         test100out test101.out test102.out
  134.   
  135.   SCRIPTS32 =    test50.out test70.out
  136.   
  137. --- 53,59 ----
  138.           test84.out test85.out test86.out test87.out test88.out \
  139.           test89.out test90.out test91.out test92.out test93.out \
  140.           test94.out test95.out test96.out test98.out test99.out \
  141. !         test100out test101.out test102.out test103.out
  142.   
  143.   SCRIPTS32 =    test50.out test70.out
  144.   
  145. *** ../vim-7.4.097/src/testdir/Make_os2.mak    2013-11-12 05:28:08.000000000 +0100
  146. --- src/testdir/Make_os2.mak    2013-11-21 14:03:03.000000000 +0100
  147. ***************
  148. *** 35,41 ****
  149.           test81.out test82.out test83.out test84.out test88.out \
  150.           test89.out test90.out test91.out test92.out test93.out \
  151.           test94.out test95.out test96.out test98.out test99.out \
  152. !         test100.out test101.out test102.out
  153.   
  154.   .SUFFIXES: .in .out
  155.   
  156. --- 35,41 ----
  157.           test81.out test82.out test83.out test84.out test88.out \
  158.           test89.out test90.out test91.out test92.out test93.out \
  159.           test94.out test95.out test96.out test98.out test99.out \
  160. !         test100.out test101.out test102.out test103.out
  161.   
  162.   .SUFFIXES: .in .out
  163.   
  164. *** ../vim-7.4.097/src/testdir/Make_vms.mms    2013-11-12 05:28:08.000000000 +0100
  165. --- src/testdir/Make_vms.mms    2013-11-21 14:03:13.000000000 +0100
  166. ***************
  167. *** 4,10 ****
  168.   # Authors:    Zoltan Arpadffy, <arpadffy@polarhome.com>
  169.   #        Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
  170.   #
  171. ! # Last change:  2013 Nov 12
  172.   #
  173.   # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
  174.   # Edit the lines in the Configuration section below to select.
  175. --- 4,10 ----
  176.   # Authors:    Zoltan Arpadffy, <arpadffy@polarhome.com>
  177.   #        Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
  178.   #
  179. ! # Last change:  2013 Nov 21
  180.   #
  181.   # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
  182.   # Edit the lines in the Configuration section below to select.
  183. ***************
  184. *** 79,85 ****
  185.        test82.out test83.out test84.out test88.out test89.out \
  186.        test90.out test91.out test92.out test93.out test94.out \
  187.        test95.out test96.out test97.out test98.out test99.out \
  188. !      test100.out test101.out test102.out
  189.   
  190.   # Known problems:
  191.   # Test 30: a problem around mac format - unknown reason
  192. --- 79,85 ----
  193.        test82.out test83.out test84.out test88.out test89.out \
  194.        test90.out test91.out test92.out test93.out test94.out \
  195.        test95.out test96.out test97.out test98.out test99.out \
  196. !      test100.out test101.out test102.out test103.out
  197.   
  198.   # Known problems:
  199.   # Test 30: a problem around mac format - unknown reason
  200. *** ../vim-7.4.097/src/testdir/Makefile    2013-11-12 05:28:08.000000000 +0100
  201. --- src/testdir/Makefile    2013-11-21 14:03:23.000000000 +0100
  202. ***************
  203. *** 30,36 ****
  204.           test84.out test85.out test86.out test87.out test88.out \
  205.           test89.out test90.out test91.out test92.out test93.out \
  206.           test94.out test95.out test96.out test97.out test98.out \
  207. !         test99.out test100.out test101.out test102.out
  208.   
  209.   SCRIPTS_GUI = test16.out
  210.   
  211. --- 30,36 ----
  212.           test84.out test85.out test86.out test87.out test88.out \
  213.           test89.out test90.out test91.out test92.out test93.out \
  214.           test94.out test95.out test96.out test97.out test98.out \
  215. !         test99.out test100.out test101.out test102.out test103.out
  216.   
  217.   SCRIPTS_GUI = test16.out
  218.   
  219. *** ../vim-7.4.097/src/version.c    2013-11-21 13:24:36.000000000 +0100
  220. --- src/version.c    2013-11-21 14:20:34.000000000 +0100
  221. ***************
  222. *** 740,741 ****
  223. --- 740,743 ----
  224.   {   /* Add new patch number below this line */
  225. + /**/
  226. +     98,
  227.   /**/
  228.  
  229. -- 
  230. I recommend ordering large cargo containers of paper towels to make up
  231. whatever budget underruns you have.  Paper products are always useful and they
  232. have the advantage of being completely flushable if you need to make room in
  233. the storage area later.
  234.                 (Scott Adams - The Dilbert principle)
  235.  
  236.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  237. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  238. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  239.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  240.