summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-28 19:05:57 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-28 19:05:57 +0200
commit8c96af9c05bfcac2d5ae081e098d4863db561511 (patch)
treeaa01cdaf87cf8050334c8cb20014774623614e73 /src/normal.c
parenta893194d91a2942d4d54085d746ed137a9251b69 (diff)
downloadvim-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/normal.c')
-rw-r--r--src/normal.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/normal.c b/src/normal.c
index 4db90d658..98ec9ef84 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -3281,7 +3281,6 @@ find_decl(
}
break;
}
-#ifdef FEAT_COMMENTS
if (get_leader_len(ml_get_curline(), NULL, FALSE, TRUE) > 0)
{
/* Ignore this line, continue at start of next line. */
@@ -3289,7 +3288,6 @@ find_decl(
curwin->w_cursor.col = 0;
continue;
}
-#endif
valid = is_ident(ml_get_curline(), curwin->w_cursor.col);
/* If the current position is not a valid identifier and a previous
@@ -7228,10 +7226,8 @@ n_opencmd(cmdarg_T *cap)
(cap->cmdchar == 'o' ? 1 : 0))
) == OK
&& open_line(cap->cmdchar == 'O' ? BACKWARD : FORWARD,
-#ifdef FEAT_COMMENTS
- has_format_option(FO_OPEN_COMS) ? OPENLINE_DO_COM :
-#endif
- 0, 0) == OK)
+ has_format_option(FO_OPEN_COMS) ? OPENLINE_DO_COM : 0,
+ 0) == OK)
{
#ifdef FEAT_CONCEAL
if (curwin->w_p_cole > 0 && oldline != curwin->w_cursor.lnum)