aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2013-12-07 01:40:55 +0000
committerTatsuya Kinoshita <tats@debian.org>2013-12-07 01:40:55 +0000
commit6f063384fd719f42340c7c0ab84fd11c9d7b4fc7 (patch)
tree691038eae5cf375e2bdb1810e251971634b60e32 /debian/patches
parentUpdate gitlog2changelog to fix paren handling (diff)
downloadw3m-6f063384fd719f42340c7c0ab84fd11c9d7b4fc7.tar.gz
w3m-6f063384fd719f42340c7c0ab84fd11c9d7b4fc7.zip
New patch 280_search-next.patch to fix crash after SEARCH_NEXT
Diffstat (limited to '')
-rw-r--r--debian/patches/280_search-next.patch19
-rw-r--r--debian/patches/series1
2 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/280_search-next.patch b/debian/patches/280_search-next.patch
new file mode 100644
index 0000000..c66254b
--- /dev/null
+++ b/debian/patches/280_search-next.patch
@@ -0,0 +1,19 @@
+Subject: Fix crash after SEARCH_NEXT
+From: AIDA Shinra <shinra@j10n.org>
+Origin: http://www.j10n.org/files/w3m-cvs-1.1055-search-next.patch
+
+ Patch from [w3m-dev:04473] on 2013-12-07.
+
+--- w3m.orig/main.c Mon Oct 14 02:20:37 2013
++++ w3m/main.c Sat Dec 7 00:33:36 2013
+@@ -1928,6 +1928,10 @@
+ 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);
diff --git a/debian/patches/series b/debian/patches/series
index 07e78a0..6e9feb0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -26,4 +26,5 @@
250_schemebug.patch
260_openssl.patch
270_refresh-url.patch
+280_search-next.patch
900_ChangeLog.patch