jkunstle / rpms / vim

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