diff options
-rw-r--r-- | src/nvim/base64.c | 2 | ||||
-rw-r--r-- | src/nvim/buffer_defs.h | 6 | ||||
-rw-r--r-- | src/nvim/eval.c | 1 | ||||
-rw-r--r-- | src/nvim/memline.c | 2 |
4 files changed, 3 insertions, 8 deletions
diff --git a/src/nvim/base64.c b/src/nvim/base64.c index 8d0c1c4bf1..5bc0c34f06 100644 --- a/src/nvim/base64.c +++ b/src/nvim/base64.c @@ -12,7 +12,7 @@ #endif #ifdef INCLUDE_GENERATED_DECLARATIONS -# include "base64.c.generated.h" // IWYU prgama: export +# include "base64.c.generated.h" // IWYU pragma: export #endif static const char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index cf77cea621..32ebe52018 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -264,9 +264,6 @@ struct wininfo_S { #define SYNFLD_START 0 // use level of item at start of line #define SYNFLD_MINIMUM 1 // use lowest local minimum level on line -// avoid #ifdefs for when b_spell is not available -#define B_SPELL(buf) ((buf)->b_spell) - typedef struct qf_info_S qf_info_T; // Used for :syntime: timing of executing a syntax pattern. @@ -695,8 +692,7 @@ struct file_buffer { bool b_help; // true for help file buffer (when set b_p_bt // is "help") bool b_spell; // True for a spell file buffer, most fields - // are not used! Use the B_SPELL macro to - // access b_spell without #ifdef. + // are not used! char *b_prompt_text; // set by prompt_setprompt() Callback b_prompt_callback; // set by prompt_setcallback() diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 6d2c276df4..ed70091077 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -2,7 +2,6 @@ #include <assert.h> #include <ctype.h> -#include <inttypes.h> #include <math.h> #include <stdio.h> #include <stdlib.h> diff --git a/src/nvim/memline.c b/src/nvim/memline.c index 087661799a..a77e6dc41d 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -334,7 +334,7 @@ int ml_open(buf_T *buf) // Only works when there's a swapfile, otherwise it's done when the file // is created. mf_put(mfp, hp, true, false); - if (!buf->b_help && !B_SPELL(buf)) { + if (!buf->b_help && !buf->b_spell) { (void)mf_sync(mfp, 0); } |