jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone
3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.585
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.585
3ef2ca
Problem:    Range for :bdelete does not work. (Ronald Schild)
3ef2ca
Solution:   Also allow unloaded buffers.
3ef2ca
Files:	    src/ex_cmds.h, src/testdir/test_command_count.in,
3ef2ca
	    src/testdir/test_command_count.ok
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.584/src/ex_cmds.h	2015-01-07 16:52:53.506792420 +0100
3ef2ca
--- src/ex_cmds.h	2015-01-20 13:22:16.778245812 +0100
3ef2ca
***************
3ef2ca
*** 173,179 ****
3ef2ca
  			ADDR_LINES),
3ef2ca
  EX(CMD_bdelete,		"bdelete",	ex_bunload,
3ef2ca
  			BANG|RANGE|NOTADR|BUFNAME|COUNT|EXTRA|TRLBAR,
3ef2ca
! 			ADDR_LOADED_BUFFERS),
3ef2ca
  EX(CMD_behave,		"behave",	ex_behave,
3ef2ca
  			NEEDARG|WORD1|TRLBAR|CMDWIN,
3ef2ca
  			ADDR_LINES),
3ef2ca
--- 173,179 ----
3ef2ca
  			ADDR_LINES),
3ef2ca
  EX(CMD_bdelete,		"bdelete",	ex_bunload,
3ef2ca
  			BANG|RANGE|NOTADR|BUFNAME|COUNT|EXTRA|TRLBAR,
3ef2ca
! 			ADDR_BUFFERS),
3ef2ca
  EX(CMD_behave,		"behave",	ex_behave,
3ef2ca
  			NEEDARG|WORD1|TRLBAR|CMDWIN,
3ef2ca
  			ADDR_LINES),
3ef2ca
*** ../vim-7.4.584/src/testdir/test_command_count.in	2015-01-20 12:39:35.918399822 +0100
3ef2ca
--- src/testdir/test_command_count.in	2015-01-20 13:21:55.510479070 +0100
3ef2ca
***************
3ef2ca
*** 92,102 ****
3ef2ca
  :call append(0, g:lines)
3ef2ca
  :unlet g:lines
3ef2ca
  :w|bd
3ef2ca
- :se hidden
3ef2ca
  :b1
3ef2ca
  ENDTEST
3ef2ca
  
3ef2ca
  STARTTEST
3ef2ca
  :only!
3ef2ca
  :let g:lines = []
3ef2ca
  :%argd
3ef2ca
--- 92,128 ----
3ef2ca
  :call append(0, g:lines)
3ef2ca
  :unlet g:lines
3ef2ca
  :w|bd
3ef2ca
  :b1
3ef2ca
  ENDTEST
3ef2ca
  
3ef2ca
  STARTTEST
3ef2ca
+ :let g:lines = []
3ef2ca
+ :func BufStatus()
3ef2ca
+ :  call add(g:lines, 'aaa: ' . buflisted(g:buf_aaa) . ' bbb: ' . buflisted(g:buf_bbb) . ' ccc: ' . buflisted(g:buf_ccc))
3ef2ca
+ :endfunc
3ef2ca
+ :se nohidden
3ef2ca
+ :e aaa
3ef2ca
+ :let buf_aaa = bufnr('%')
3ef2ca
+ :e bbb
3ef2ca
+ :let buf_bbb = bufnr('%')
3ef2ca
+ :e ccc
3ef2ca
+ :let buf_ccc = bufnr('%')
3ef2ca
+ :b1
3ef2ca
+ :call BufStatus()
3ef2ca
+ :exe buf_bbb . "," . buf_ccc . "bdelete"
3ef2ca
+ :call BufStatus()
3ef2ca
+ :exe buf_aaa . "bdelete"
3ef2ca
+ :call BufStatus()
3ef2ca
+ :e! test.out
3ef2ca
+ :call append('$', g:lines)
3ef2ca
+ :unlet g:lines
3ef2ca
+ :delfunc BufStatus
3ef2ca
+ :w|bd
3ef2ca
+ :b1
3ef2ca
+ ENDTEST
3ef2ca
+ 
3ef2ca
+ STARTTEST
3ef2ca
+ :se hidden
3ef2ca
  :only!
3ef2ca
  :let g:lines = []
3ef2ca
  :%argd
3ef2ca
*** ../vim-7.4.584/src/testdir/test_command_count.ok	2015-01-14 11:24:51.851582151 +0100
3ef2ca
--- src/testdir/test_command_count.ok	2015-01-20 13:16:03.358341733 +0100
3ef2ca
***************
3ef2ca
*** 28,35 ****
3ef2ca
  $+tabe E16: Invalid range
3ef2ca
  0tabm x
3ef2ca
  
3ef2ca
  argdo: c d e
3ef2ca
  windo: 2 3 4
3ef2ca
! bufdo: 2 3 4 5 6 7 8 9 10 12
3ef2ca
  bufdo: 3 4 5 6 7
3ef2ca
  tabdo: 2 3 4
3ef2ca
--- 28,38 ----
3ef2ca
  $+tabe E16: Invalid range
3ef2ca
  0tabm x
3ef2ca
  
3ef2ca
+ aaa: 1 bbb: 1 ccc: 1
3ef2ca
+ aaa: 1 bbb: 0 ccc: 0
3ef2ca
+ aaa: 0 bbb: 0 ccc: 0
3ef2ca
  argdo: c d e
3ef2ca
  windo: 2 3 4
3ef2ca
! bufdo: 2 3 4 5 6 7 8 9 10 15
3ef2ca
  bufdo: 3 4 5 6 7
3ef2ca
  tabdo: 2 3 4
3ef2ca
*** ../vim-7.4.584/src/version.c	2015-01-20 12:39:35.918399822 +0100
3ef2ca
--- src/version.c	2015-01-20 13:27:49.438597595 +0100
3ef2ca
***************
3ef2ca
*** 743,744 ****
3ef2ca
--- 743,746 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     585,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
I AM THANKFUL...
3ef2ca
...for a lawn that needs mowing, windows that need cleaning
3ef2ca
and gutters that need fixing because it means I have a home.
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    ///