aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
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) {
/*