comparison src/fileio.c @ 3997:c83cd3d01128 v7.3.753

updated for version 7.3.753 Problem: When there is a QuitPre autocommand using ":q" twice does not work for exiting when there are more files to edit. Solution: Do not decrement quitmore in an autocommand. (Techlive Zheng)
author Bram Moolenaar <bram@vim.org>
date Wed, 05 Dec 2012 19:13:18 +0100
parents e70485d3f81d
children 8819ea6dcb72
comparison
equal deleted inserted replaced
3996:b3f3237a3d72 3997:c83cd3d01128
7772 static char_u *event_nr2name __ARGS((event_T event)); 7772 static char_u *event_nr2name __ARGS((event_T event));
7773 static char_u *find_end_event __ARGS((char_u *arg, int have_group)); 7773 static char_u *find_end_event __ARGS((char_u *arg, int have_group));
7774 static int event_ignored __ARGS((event_T event)); 7774 static int event_ignored __ARGS((event_T event));
7775 static int au_get_grouparg __ARGS((char_u **argp)); 7775 static int au_get_grouparg __ARGS((char_u **argp));
7776 static int do_autocmd_event __ARGS((event_T event, char_u *pat, int nested, char_u *cmd, int forceit, int group)); 7776 static int do_autocmd_event __ARGS((event_T event, char_u *pat, int nested, char_u *cmd, int forceit, int group));
7777 static char_u *getnextac __ARGS((int c, void *cookie, int indent));
7778 static int apply_autocmds_group __ARGS((event_T event, char_u *fname, char_u *fname_io, int force, int group, buf_T *buf, exarg_T *eap)); 7777 static int apply_autocmds_group __ARGS((event_T event, char_u *fname, char_u *fname_io, int force, int group, buf_T *buf, exarg_T *eap));
7779 static void auto_next_pat __ARGS((AutoPatCmd *apc, int stop_at_last)); 7778 static void auto_next_pat __ARGS((AutoPatCmd *apc, int stop_at_last));
7780 7779
7781 7780
7782 static event_T last_event; 7781 static event_T last_event;
9611 /* 9610 /*
9612 * Get next autocommand command. 9611 * Get next autocommand command.
9613 * Called by do_cmdline() to get the next line for ":if". 9612 * Called by do_cmdline() to get the next line for ":if".
9614 * Returns allocated string, or NULL for end of autocommands. 9613 * Returns allocated string, or NULL for end of autocommands.
9615 */ 9614 */
9616 static char_u * 9615 char_u *
9617 getnextac(c, cookie, indent) 9616 getnextac(c, cookie, indent)
9618 int c UNUSED; 9617 int c UNUSED;
9619 void *cookie; 9618 void *cookie;
9620 int indent UNUSED; 9619 int indent UNUSED;
9621 { 9620 {