aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2013-12-07 01:34:11 +0000
committerTatsuya Kinoshita <tats@debian.org>2013-12-07 01:34:11 +0000
commitc1c4d3aa83f7d2ea5391748c3340ff7247779337 (patch)
treeacbec608a4d4cac5de531de9054e179a67ee0f46
parentMerge branch 'bug/refresh-url' (diff)
parentFix crash after SEARCH_NEXT (diff)
downloadw3m-c1c4d3aa83f7d2ea5391748c3340ff7247779337.tar.gz
w3m-c1c4d3aa83f7d2ea5391748c3340ff7247779337.zip
Merge branch 'bug/search-next'
Diffstat (limited to '')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index ec77085..3faaded 100644
--- a/main.c
+++ b/main.c
@@ -1931,6 +1931,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);