Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
4056:8c50963f306f | 4057:a80af62d5e3b |
---|---|
7550 if (!virtual_active()) | 7550 if (!virtual_active()) |
7551 curwin->w_cursor.coladd = 0; | 7551 curwin->w_cursor.coladd = 0; |
7552 #endif | 7552 #endif |
7553 #ifdef FEAT_FOLDING | 7553 #ifdef FEAT_FOLDING |
7554 if (cap->oap->op_type == OP_NOP | 7554 if (cap->oap->op_type == OP_NOP |
7555 && pos != NULL | |
7555 && (pos == (pos_T *)-1 || !equalpos(old_cursor, *pos)) | 7556 && (pos == (pos_T *)-1 || !equalpos(old_cursor, *pos)) |
7556 && (fdo_flags & FDO_MARK) | 7557 && (fdo_flags & FDO_MARK) |
7557 && old_KeyTyped) | 7558 && old_KeyTyped) |
7558 foldOpenCursor(); | 7559 foldOpenCursor(); |
7559 #endif | 7560 #endif |