diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-28 19:05:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-28 19:05:57 +0200 |
commit | 8c96af9c05bfcac2d5ae081e098d4863db561511 (patch) | |
tree | aa01cdaf87cf8050334c8cb20014774623614e73 /src/misc1.c | |
parent | a893194d91a2942d4d54085d746ed137a9251b69 (diff) | |
download | vim-git-8c96af9c05bfcac2d5ae081e098d4863db561511.tar.gz |
patch 8.1.2096: too many #ifdefsv8.1.2096
Problem: Too many #ifdefs.
Solution: Graduate FEAT_COMMENTS.
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/misc1.c b/src/misc1.c index 4566ca2a9..d43de06c1 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -466,11 +466,10 @@ get_number_indent(linenr_T lnum) return -1; pos.lnum = 0; -#ifdef FEAT_COMMENTS /* In format_lines() (i.e. not insert mode), fo+=q is needed too... */ if ((State & INSERT) || has_format_option(FO_Q_COMS)) lead_len = get_leader_len(ml_get(lnum), NULL, FALSE, TRUE); -#endif + regmatch.regprog = vim_regcomp(curbuf->b_p_flp, RE_MAGIC); if (regmatch.regprog != NULL) { @@ -561,7 +560,6 @@ get_breakindent_win( } #endif -#if defined(FEAT_COMMENTS) || defined(PROTO) /* * get_leader_len() returns the length in bytes of the prefix of the given * string which introduces a comment. If this string is not a comment then @@ -862,7 +860,6 @@ get_last_leader_offset(char_u *line, char_u **flags) } return result; } -#endif /* * Return the number of window lines occupied by buffer line "lnum". @@ -1548,8 +1545,6 @@ prompt_for_number(int *mouse_used) if (msg_row > 0) cmdline_row = msg_row - 1; need_wait_return = FALSE; - msg_didany = FALSE; - msg_didout = FALSE; } else cmdline_row = save_cmdline_row; |