To: vim_dev@googlegroups.com Subject: Patch 7.4.2348 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.2348 Problem: Crash on exit when EXITFREE is defined. (Dominique Pelle) Solution: Don't access curwin when exiting. Files: src/buffer.c *** ../vim-7.4.2347/src/buffer.c 2016-09-08 23:35:27.018913864 +0200 --- src/buffer.c 2016-09-09 12:51:56.030006528 +0200 *************** *** 580,586 **** /* When closing the current buffer stop Visual mode before freeing * anything. */ ! if (buf == curbuf) end_visual_mode(); /* --- 580,590 ---- /* When closing the current buffer stop Visual mode before freeing * anything. */ ! if (buf == curbuf ! #if defined(EXITFREE) ! && !entered_free_all_mem ! #endif ! ) end_visual_mode(); /* *** ../vim-7.4.2347/src/version.c 2016-09-08 23:35:27.022913833 +0200 --- src/version.c 2016-09-09 12:52:44.353168648 +0200 *************** *** 765,766 **** --- 765,768 ---- { /* Add new patch number below this line */ + /**/ + 2348, /**/ -- hundred-and-one symptoms of being an internet addict: 207. You're given one phone call in prison and you ask them for a laptop. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///