Commit c901d225 authored by deuce's avatar deuce
Browse files

Actually, this commit fixes the crash... I wasn't high enough up in the

tree to commit both at once.

There was a crash when wrapping at the end of a search.  Now there isn't.
You're welcome.
parent bcdf5546
......@@ -1716,6 +1716,8 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
if(/*!(api->mode&UIFC_NOCTRL)*/1) { // No no, *this* control key is fine!
if (gotkey == CTRL_G || api->input(WIN_MID|WIN_SAV, 0, 0, "Find", search, sizeof(search), K_EDIT|K_FIND) > 0) {
for (j = (*cur) + 1; j != *cur; j++, j = (j >= opts) ? 0 : j) {
if (option[j] == NULL || j >= opts)
continue;
if (strcasestr(option[j], search) != NULL) {
// Copy/pasted from search above.
if(y+(j-(*cur))+2>height+top) {
......
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