From bb89b3973db03b35232f9eb49157dada15bec96a Mon Sep 17 00:00:00 2001 From: edyfox Date: Fri, 9 Mar 2007 00:51:40 +0000 Subject: [PATCH] Patch 7.0.210 Problem: ":cbuffer" and ":lbuffer" always fail when the buffer is modified. (Gary Johnson) Solution: Support adding a !. (Yegappan Lakshmanan) Files: runtime/doc/quickfix.txt, src/ex_cmds.h git-svn-id: https://vim.svn.sourceforge.net/svnroot/vim/vim7@228 2a77ed30-b011-0410-a7ad-c7884a0aa172 --- runtime/doc/quickfix.txt | 7 ++++--- src/ex_cmds.h | 4 ++-- src/version.c | 2 ++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt index 73a34be0..7759f189 100644 --- a/runtime/doc/quickfix.txt +++ b/runtime/doc/quickfix.txt @@ -1,4 +1,4 @@ -*quickfix.txt* For Vim version 7.0. Last change: 2006 Apr 30 +*quickfix.txt* For Vim version 7.0. Last change: 2006 Jul 18 VIM REFERENCE MANUAL by Bram Moolenaar @@ -178,15 +178,16 @@ command with 'l'. current window is used instead of the quickfix list. *:cb* *:cbuffer* *E681* -:cb[uffer] [bufnr] Read the error list from the current buffer. +:cb[uffer][!] [bufnr] Read the error list from the current buffer. When [bufnr] is given it must be the number of a loaded buffer. That buffer will then be used instead of the current buffer. A range can be specified for the lines to be used. Otherwise all lines in the buffer are used. + See |:cc| for [!]. *:lb* *:lbuffer* -:lb[uffer] [bufnr] Same as ":cbuffer", except the location list for the +:lb[uffer][!] [bufnr] Same as ":cbuffer", except the location list for the current window is used instead of the quickfix list. *:cgetb* *:cgetbuffer* diff --git a/src/ex_cmds.h b/src/ex_cmds.h index 8c8db08c..d06e0318 100644 --- a/src/ex_cmds.h +++ b/src/ex_cmds.h @@ -198,7 +198,7 @@ EX(CMD_call, "call", ex_call, EX(CMD_catch, "catch", ex_catch, EXTRA|SBOXOK|CMDWIN), EX(CMD_cbuffer, "cbuffer", ex_cbuffer, - RANGE|NOTADR|WORD1|TRLBAR), + BANG|RANGE|NOTADR|WORD1|TRLBAR), EX(CMD_cc, "cc", ex_cc, RANGE|NOTADR|COUNT|TRLBAR|BANG), EX(CMD_cclose, "cclose", ex_cclose, @@ -498,7 +498,7 @@ EX(CMD_laddfile, "laddfile", ex_cfile, EX(CMD_later, "later", ex_later, TRLBAR|EXTRA|NOSPC|CMDWIN), EX(CMD_lbuffer, "lbuffer", ex_cbuffer, - RANGE|NOTADR|WORD1|TRLBAR), + BANG|RANGE|NOTADR|WORD1|TRLBAR), EX(CMD_lcd, "lcd", ex_cd, BANG|FILE1|TRLBAR|CMDWIN), EX(CMD_lchdir, "lchdir", ex_cd, diff --git a/src/version.c b/src/version.c index 77f71c87..3d7ce930 100644 --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 210, +/**/ 209, /**/ 208, -- 2.11.4.GIT