Patch 7.3.857
Problem: The QuitPre autocommand event does not trigger for :qa and :wq.
Solution: Trigger the event. (Tatsuro Fujii)
Files: src/ex_docmd.c
*** ../vim-7.3.856/src/ex_docmd.c 2013-02-26 17:21:15.000000000 +0100
--- src/ex_docmd.c 2013-03-13 18:14:56.000000000 +0100
***************
*** 6526,6532 ****
}
#ifdef FEAT_AUTOCMD
apply_autocmds(EVENT_QUITPRE, NULL, NULL, FALSE, curbuf);
! /* Refuse to quick when locked or when the buffer in the last window is
* being closed (can only happen in autocommands). */
if (curbuf_locked() || (curbuf->b_nwindows == 1 && curbuf->b_closing))
return;
--- 6526,6532 ----
}
#ifdef FEAT_AUTOCMD
apply_autocmds(EVENT_QUITPRE, NULL, NULL, FALSE, curbuf);
! /* Refuse to quit when locked or when the buffer in the last window is
* being closed (can only happen in autocommands). */
if (curbuf_locked() || (curbuf->b_nwindows == 1 && curbuf->b_closing))
return;
***************
*** 6600,6606 ****
return;
}
#ifdef FEAT_AUTOCMD
! if (curbuf_locked())
return;
#endif
--- 6600,6609 ----
return;
}
#ifdef FEAT_AUTOCMD
! apply_autocmds(EVENT_QUITPRE, NULL, NULL, FALSE, curbuf);
! /* Refuse to quit when locked or when the buffer in the last window is
! * being closed (can only happen in autocommands). */
! if (curbuf_locked() || (curbuf->b_nwindows == 1 && curbuf->b_closing))
return;
#endif
***************
*** 6936,6942 ****
return;
}
#ifdef FEAT_AUTOCMD
! if (curbuf_locked())
return;
#endif
--- 6939,6948 ----
return;
}
#ifdef FEAT_AUTOCMD
! apply_autocmds(EVENT_QUITPRE, NULL, NULL, FALSE, curbuf);
! /* Refuse to quit when locked or when the buffer in the last window is
! * being closed (can only happen in autocommands). */
! if (curbuf_locked() || (curbuf->b_nwindows == 1 && curbuf->b_closing))
return;
#endif
*** ../vim-7.3.856/src/version.c 2013-03-13 17:50:20.000000000 +0100
--- src/version.c 2013-03-13 18:26:13.000000000 +0100
***************
*** 730,731 ****
--- 730,733 ----
{ /* Add new patch number below this line */
+ /**/
+ 857,
/**/
--
The future isn't what it used to be.
/// Bram Moolenaar -- [email protected] -- 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 ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.