diff options
author | Daniel Hahler <git@thequod.de> | 2017-01-12 23:03:41 +0100 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2017-01-13 23:41:00 +0100 |
commit | 980bf1e548582bdcd86e6aefe2a0323cbce60f19 (patch) | |
tree | 44570f7ad2d10ab6f88b45e8363dc8c91db0088c | |
parent | a0b33b333ee46b87d62ab1a8d8d515e83fbbe635 (diff) | |
download | rneovim-980bf1e548582bdcd86e6aefe2a0323cbce60f19.tar.gz rneovim-980bf1e548582bdcd86e6aefe2a0323cbce60f19.tar.bz2 rneovim-980bf1e548582bdcd86e6aefe2a0323cbce60f19.zip |
Linting
-rw-r--r-- | src/nvim/option.c | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index ee0ee143f6..a4e7da770e 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -213,12 +213,12 @@ typedef struct vimoption { #define P_VI_DEF 0x400U /* Use Vi default for Vim */ #define P_VIM 0x800U /* Vim option */ -/* when option changed, what to display: */ -#define P_RSTAT 0x1000U /* redraw status lines */ -#define P_RWIN 0x2000U /* redraw current window */ -#define P_RBUF 0x4000U /* redraw current buffer */ -#define P_RALL 0x6000U /* redraw all windows */ -#define P_RCLR 0x7000U /* clear and redraw all */ +// when option changed, what to display: +#define P_RSTAT 0x1000U ///< redraw status lines +#define P_RWIN 0x2000U ///< redraw current window and recompute text +#define P_RBUF 0x4000U ///< redraw current buffer and recompute text +#define P_RALL 0x6000U ///< redraw all windows +#define P_RCLR 0x7000U ///< clear and redraw all #define P_COMMA 0x8000U ///< comma separated list #define P_ONECOMMA 0x18000U ///< P_COMMA and cannot have two consecutive @@ -4359,19 +4359,24 @@ static void check_redraw(uint32_t flags) bool doclear = (flags & P_RCLR) == P_RCLR; bool all = ((flags & P_RALL) == P_RALL || doclear); - if ((flags & P_RSTAT) || all) /* mark all status lines dirty */ + if ((flags & P_RSTAT) || all) { // mark all status lines dirty status_redraw_all(); + } - if ((flags & P_RBUF) || (flags & P_RWIN) || all) + if ((flags & P_RBUF) || (flags & P_RWIN) || all) { changed_window_setting(); - if (flags & P_RBUF) + } + if (flags & P_RBUF) { redraw_curbuf_later(NOT_VALID); - if (flags & P_RWINONLY) + } + if (flags & P_RWINONLY) { redraw_later(NOT_VALID); - if (doclear) + } + if (doclear) { redraw_all_later(CLEAR); - else if (all) + } else if (all) { redraw_all_later(NOT_VALID); + } } /// Find index for named option |