Fix crash after SEARCH_NEXT
Patch from <http://www.j10n.org/files/w3m-cvs-1.1055-search-next.patch>, [w3m-dev:04473] on 2013-12-07.
This commit is contained in:
committed by
Tatsuya Kinoshita
parent
dbd52ac2ca
commit
b5641f56ce
@@ -1844,6 +1844,10 @@ srch_nxtprv(int reverse)
|
||||
result = srchcore(SearchString, routine[reverse]);
|
||||
if (result & SR_FOUND)
|
||||
clear_mark(Currentbuf->currentLine);
|
||||
else {
|
||||
if (reverse == 0)
|
||||
Currentbuf->pos -= 1;
|
||||
}
|
||||
displayBuffer(Currentbuf, B_NORMAL);
|
||||
disp_srchresult(result, (reverse ? "Backward: " : "Forward: "),
|
||||
SearchString);
|
||||
|
||||
Reference in New Issue
Block a user