openbsd-ports/editors/elvis/patches/patch-move_c
sthen dcf8bf5606 Various patches to editors/elvis, mostly from Debian, via Donovan Watteau:
- add --docdir so that :help works
- add --verbose
- fix a bug in the ")" command that could cause a segfault
- fix a bug when lauching elvis in a directory containing a "tags" dir
- make file/syntax detection work for scripts using "env"
- add "return" to the list of shell script keywords
- fix a few things in the man pages (\-, typo, whitespace) since
we were already patching them.
2012-05-05 14:03:15 +00:00

25 lines
601 B
Plaintext

$OpenBSD: patch-move_c,v 1.1 2012/05/05 14:03:15 sthen Exp $
From Debian:
"Fix a bug in the ) vi command that could cause a segmentation
fault (patch from elvis-almost-2.2.1)"
--- move.c.orig Tue Oct 21 04:32:25 2003
+++ move.c Sat May 5 13:53:51 2012
@@ -1620,6 +1620,7 @@ RESULT m_fsentence(win, vinf)
long para;
long offset;
long count;
+ MARKBUF tmp;
DEFAULT(1);
@@ -1651,6 +1652,7 @@ RESULT m_fsentence(win, vinf)
else
{
para = 0;
+ scanseek(&cp, marktmp(tmp, markbuffer(win->state->cursor), 0L));
}
marksetoffset(win->state->cursor, offset);
if (para == offset)