forked from aniani/vim
patch 8.1.0826: too many #ifdefs
Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
This commit is contained in:
12
src/search.c
12
src/search.c
@@ -1029,11 +1029,9 @@ searchit(
|
||||
end_pos->col = endpos.col;
|
||||
}
|
||||
}
|
||||
#ifdef FEAT_VIRTUALEDIT
|
||||
pos->coladd = 0;
|
||||
if (end_pos != NULL)
|
||||
end_pos->coladd = 0;
|
||||
#endif
|
||||
found = 1;
|
||||
first_match = FALSE;
|
||||
|
||||
@@ -1919,9 +1917,7 @@ findmatchlimit(
|
||||
#endif
|
||||
|
||||
pos = curwin->w_cursor;
|
||||
#ifdef FEAT_VIRTUALEDIT
|
||||
pos.coladd = 0;
|
||||
#endif
|
||||
linep = ml_get(pos.lnum);
|
||||
|
||||
cpo_match = (vim_strchr(p_cpo, CPO_MATCH) != NULL);
|
||||
@@ -3027,9 +3023,7 @@ fwd_word(
|
||||
int i;
|
||||
int last_line;
|
||||
|
||||
#ifdef FEAT_VIRTUALEDIT
|
||||
curwin->w_cursor.coladd = 0;
|
||||
#endif
|
||||
cls_bigword = bigword;
|
||||
while (--count >= 0)
|
||||
{
|
||||
@@ -3094,9 +3088,7 @@ bck_word(long count, int bigword, int stop)
|
||||
{
|
||||
int sclass; /* starting class */
|
||||
|
||||
#ifdef FEAT_VIRTUALEDIT
|
||||
curwin->w_cursor.coladd = 0;
|
||||
#endif
|
||||
cls_bigword = bigword;
|
||||
while (--count >= 0)
|
||||
{
|
||||
@@ -3163,9 +3155,7 @@ end_word(
|
||||
{
|
||||
int sclass; /* starting class */
|
||||
|
||||
#ifdef FEAT_VIRTUALEDIT
|
||||
curwin->w_cursor.coladd = 0;
|
||||
#endif
|
||||
cls_bigword = bigword;
|
||||
while (--count >= 0)
|
||||
{
|
||||
@@ -3233,9 +3223,7 @@ bckend_word(
|
||||
int sclass; /* starting class */
|
||||
int i;
|
||||
|
||||
#ifdef FEAT_VIRTUALEDIT
|
||||
curwin->w_cursor.coladd = 0;
|
||||
#endif
|
||||
cls_bigword = bigword;
|
||||
while (--count >= 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user