version 1.231, 2019/08/14 09:58:31 |
version 1.232, 2019/08/14 09:59:43 |
|
|
const char *argument = cs->args->argv[1]; |
const char *argument = cs->args->argv[1]; |
|
|
if (*argument != '\0') { |
if (*argument != '\0') { |
|
data->searchtype = WINDOW_COPY_SEARCHUP; |
free(data->searchstr); |
free(data->searchstr); |
data->searchstr = xstrdup(argument); |
data->searchstr = xstrdup(argument); |
} |
|
if (data->searchstr != NULL) { |
|
data->searchtype = WINDOW_COPY_SEARCHUP; |
|
for (; np != 0; np--) |
for (; np != 0; np--) |
window_copy_search_up(wme); |
window_copy_search_up(wme); |
} |
} |
|
|
const char *argument = cs->args->argv[1]; |
const char *argument = cs->args->argv[1]; |
|
|
if (*argument != '\0') { |
if (*argument != '\0') { |
|
data->searchtype = WINDOW_COPY_SEARCHDOWN; |
free(data->searchstr); |
free(data->searchstr); |
data->searchstr = xstrdup(argument); |
data->searchstr = xstrdup(argument); |
} |
|
if (data->searchstr != NULL) { |
|
data->searchtype = WINDOW_COPY_SEARCHDOWN; |
|
for (; np != 0; np--) |
for (; np != 0; np--) |
window_copy_search_down(wme); |
window_copy_search_down(wme); |
} |
} |
|
|
return (0); |
return (0); |
} |
} |
|
|
/* Search in text. If direction is 0 then search up, otherwise down. */ |
/* |
|
* Search in for text searchstr. If direction is 0 then search up, otherwise |
|
* down. |
|
*/ |
static int |
static int |
window_copy_search(struct window_mode_entry *wme, int direction) |
window_copy_search(struct window_mode_entry *wme, int direction) |
{ |
{ |