summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/search.c b/src/search.c
index 456b69426..2ed15df2b 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1440,6 +1440,11 @@ searchc(cap, t_cmd)
/* For multi-byte re-use last bytes[] and bytelen. */
}
+ if (dir == BACKWARD)
+ cap->oap->inclusive = FALSE;
+ else
+ cap->oap->inclusive = TRUE;
+
p = ml_get_curline();
col = curwin->w_cursor.col;
len = (int)STRLEN(p);