diff src/normal.c @ 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 b6148e4a9c39
children 36fd800b8c6c
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)