/* This file contains movement functions that perform character searches */
static MARK (*prevfwdfn
)(); /* function to search in same direction */
static MARK (*prevrevfn
)(); /* function to search in opposite direction */
static char prev_key
; /* sought cvhar from previous [fFtT] */
MARK m
; /* current position */
char cmd
; /* command: either ',' or ';' */
msg("No previous f, F, t, or T command");
m
= (*prevrevfn
)(m
, cnt
, prev_key
);
/* Oops! we didn't want to change the prev*fn vars! */
return (*prevfwdfn
)(m
, cnt
, prev_key
);
/* move forward within this line to next occurrence of key */
MARK m
; /* where to search from */
char key
; /* what to search for */
text
= ptext
+ markidx(m
);
} while (*text
&& *text
!= key
);
/* move backward within this line to previous occurrence of key */
MARK m
; /* where to search from */
char key
; /* what to search for */
text
= ptext
+ markidx(m
);
} while (text
>= ptext
&& *text
!= key
);
/* move forward within this line almost to next occurrence of key */
MARK m
; /* where to search from */
char key
; /* what to search for */
/* skip the adjacent char */
/* move backward within this line almost to previous occurrence of key */
MARK m
; /* where to search from */
char key
; /* what to search for */
/* skip the adjacent char */