changeset 4057:a80af62d5e3b v7.3.783

updated for version 7.3.783 Problem: Crash when mark is not set. (Dominique Pelle) Solution: Check for NULL.
author Bram Moolenaar <bram@vim.org>
date Thu, 24 Jan 2013 21:00:20 +0100
parents 8c50963f306f
children 3bc0838d3188
files src/normal.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/normal.c
+++ b/src/normal.c
@@ -7552,6 +7552,7 @@ nv_gomark(cap)
 #endif
 #ifdef FEAT_FOLDING
     if (cap->oap->op_type == OP_NOP
+	    && pos != NULL
 	    && (pos == (pos_T *)-1 || !equalpos(old_cursor, *pos))
 	    && (fdo_flags & FDO_MARK)
 	    && old_KeyTyped)
--- a/src/version.c
+++ b/src/version.c
@@ -726,6 +726,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    783,
+/**/
     782,
 /**/
     781,