commit | 9a27c7fde6d453d9892b6f6baa756bce4d6d419d | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Sep 09 12:57:09 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Sep 09 12:57:09 2016 +0200 |
tree | 3d4e8ad6672b8f4883dda29adaaceb7dc3230838 | |
parent | c4a908e83690844b0d3a46124ba6af7d23485d69 [diff] [blame] |
patch 7.4.2348 Problem: Crash on exit when EXITFREE is defined. (Dominique Pelle) Solution: Don't access curwin when exiting.
diff --git a/src/buffer.c b/src/buffer.c index 3bfd975..55e200a 100644 --- a/src/buffer.c +++ b/src/buffer.c
@@ -580,7 +580,11 @@ /* When closing the current buffer stop Visual mode before freeing * anything. */ - if (buf == curbuf) + if (buf == curbuf +#if defined(EXITFREE) + && !entered_free_all_mem +#endif + ) end_visual_mode(); /*