mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
FOR_ALL_BUFFERS use locally declared buffer pointer
This commit is contained in:
@@ -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) {
|
||||
/*
|
||||
|
Reference in New Issue
Block a user