Commit 4812db15 authored by deuce's avatar deuce
Browse files

Add CTRL-G to repeat the last search.

parent ab7ec617
......@@ -1712,8 +1712,9 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
}
return(-1);
case CTRL_F: /* find */
case CTRL_G:
if(/*!(api->mode&UIFC_NOCTRL)*/1) { // No no, *this* control key is fine!
if (api->input(WIN_MID|WIN_SAV, 0, 0, "Find", search, sizeof(search), K_EDIT) > 0) {
if (gotkey == CTRL_G || api->input(WIN_MID|WIN_SAV, 0, 0, "Find", search, sizeof(search), K_EDIT) > 0) {
for (j = (*cur) + 1; j != *cur; j++, j = option[j] == NULL ? 0 : j) { /* a = search count */
if (strcasestr(option[j], search) != NULL) {
// Copy/pasted from search above.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment