mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Fix the crash caused by jumping to last anchor in plain text files.
Submitted by: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
parent
8f21a18f60
commit
4cb2d1a0cf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=63627
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= w3m
|
||||
PORTVERSION= ${W3M_VERSION}
|
||||
PORTREVISION= 1
|
||||
CATEGORIES+= www ipv6
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
20
www/w3m/files/patch-main.c
Normal file
20
www/w3m/files/patch-main.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- main.c.orig Wed Jul 17 21:54:51 2002
|
||||
+++ main.c Wed Jul 17 21:57:26 2002
|
||||
@@ -3307,7 +3307,7 @@
|
||||
HmarkerList *hl = Currentbuf->hmarklist;
|
||||
BufferPoint *po;
|
||||
Anchor *an;
|
||||
- int hseq = hl->nmark - 1;
|
||||
+ int hseq;
|
||||
|
||||
if (Currentbuf->firstLine == NULL)
|
||||
return;
|
||||
@@ -3318,6 +3318,8 @@
|
||||
hseq = 0;
|
||||
else if (prec_num > 0)
|
||||
hseq = hl->nmark - prec_num;
|
||||
+ else
|
||||
+ hseq = hl->nmark - 1;
|
||||
do {
|
||||
if (hseq < 0)
|
||||
return;
|
Loading…
Reference in New Issue
Block a user