aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorWayne Rowcliffe <war1025@gmail.com>2014-08-10 22:56:58 -0500
committerWayne Rowcliffe <war1025@gmail.com>2014-08-17 11:13:42 -0500
commit888a31ba454cf9c054527a26459c112593efa54b (patch)
tree973c974f9adde300fe405114cdc609746351d617 /src/nvim/option.c
parent8cf45786b11c4c96444962227a960a3683d9f2b1 (diff)
downloadrneovim-888a31ba454cf9c054527a26459c112593efa54b.tar.gz
rneovim-888a31ba454cf9c054527a26459c112593efa54b.tar.bz2
rneovim-888a31ba454cf9c054527a26459c112593efa54b.zip
FOR_ALL_BUFFERS use locally declared buffer pointer
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 448e0e3c43..ebf2e8b4af 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -4977,7 +4977,7 @@ set_bool_option (
char_u hash[UNDO_HASH_SIZE];
buf_T *save_curbuf = curbuf;
- FOR_ALL_BUFFERS(curbuf) {
+ for (curbuf = firstbuf; curbuf != NULL; curbuf = curbuf->b_next) {
/* When 'undofile' is set globally: for every buffer, otherwise
* only for the current buffer: Try to read in the undofile,
* if one exists, the buffer wasn't changed and the buffer was
@@ -7694,7 +7694,6 @@ static void paste_option_changed(void)
static int save_ru = 0;
static int save_ri = 0;
static int save_hkmap = 0;
- buf_T *buf;
if (p_paste) {
/*