diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2025-02-05 23:09:29 +0000 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2025-02-05 23:09:29 +0000 |
commit | d5f194ce780c95821a855aca3c19426576d28ae0 (patch) | |
tree | d45f461b19f9118ad2bb1f440a7a08973ad18832 /src/nvim/indent.c | |
parent | c5d770d311841ea5230426cc4c868e8db27300a8 (diff) | |
parent | 44740e561fc93afe3ebecfd3618bda2d2abeafb0 (diff) | |
download | rneovim-d5f194ce780c95821a855aca3c19426576d28ae0.tar.gz rneovim-d5f194ce780c95821a855aca3c19426576d28ae0.tar.bz2 rneovim-d5f194ce780c95821a855aca3c19426576d28ae0.zip |
Diffstat (limited to 'src/nvim/indent.c')
-rw-r--r-- | src/nvim/indent.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/indent.c b/src/nvim/indent.c index e487728901..170346ec0d 100644 --- a/src/nvim/indent.c +++ b/src/nvim/indent.c @@ -34,7 +34,6 @@ #include "nvim/option.h" #include "nvim/option_defs.h" #include "nvim/option_vars.h" -#include "nvim/optionstr.h" #include "nvim/os/input.h" #include "nvim/plines.h" #include "nvim/pos_defs.h" @@ -793,7 +792,7 @@ bool briopt_check(char *briopt, win_T *wp) } while (*p != NUL) { - // Note: Keep this in sync with p_briopt_values + // Note: Keep this in sync with opt_briopt_values. if (strncmp(p, "shift:", 6) == 0 && ((p[6] == '-' && ascii_isdigit(p[7])) || ascii_isdigit(p[6]))) { p += 6; @@ -872,7 +871,7 @@ int get_breakindent_win(win_T *wp, char *line) || prev_tick != buf_get_changedtick(wp->w_buffer) || prev_listopt != wp->w_briopt_list || prev_no_ts != no_ts - || prev_dy_uhex != (dy_flags & DY_UHEX) + || prev_dy_uhex != (dy_flags & kOptDyFlagUhex) || prev_flp == NULL || strcmp(prev_flp, get_flp_value(wp->w_buffer)) != 0 || prev_line == NULL || strcmp(prev_line, line) != 0) { @@ -893,7 +892,7 @@ int get_breakindent_win(win_T *wp, char *line) prev_listopt = wp->w_briopt_list; prev_list = 0; prev_no_ts = no_ts; - prev_dy_uhex = (dy_flags & DY_UHEX); + prev_dy_uhex = (dy_flags & kOptDyFlagUhex); xfree(prev_flp); prev_flp = xstrdup(get_flp_value(wp->w_buffer)); // add additional indent for numbered lists |